class documentation

class PassthroughDecompressor(object):

View In Hierarchy

A decompressor-like object that does not decompress.

Method __init__ Undocumented
Method decompress Decompress the data. Some data may be buffered internally.
Instance Variable unused_data data found after the end of the data stream. Always empty.
Property eof True if the end of the stream has been reached.
Property needs_input False if the decompress() method can provide more decompressed data before requiring new input.
Instance Variable _buffer Undocumented
def __init__(self):

Undocumented

def decompress(self, data, max_length=-1):

Decompress the data. Some data may be buffered internally.

Parameters
data:bytesdata to decompress
max_length:intif positive, return at most this many bytes
Returns
boolthe decompressed data
unused_data: bytes =

data found after the end of the data stream. Always empty.

eof =

True if the end of the stream has been reached.

This will always be False, as we don't know when the end of the stream has been reached.

needs_input: bool =

False if the decompress() method can provide more decompressed data before requiring new input.

_buffer: bytes =

Undocumented