class documentation

class PassthroughCompressor(object):

View In Hierarchy

A compressor-like object that does not compress.

Should be thread safe.

Method __init__ Undocumented
Method compress "Compress" the data, returning the "compressed" data.
Method flush Finish the compression, returning all remaing "compressed" data.
Instance Variable _flush_called Undocumented
def __init__(self):

Undocumented

def compress(self, data):

"Compress" the data, returning the "compressed" data.

Parameters
data:bytesdata to "compress"
Returns
bytesthe original, uncompressed data
def flush(self):

Finish the compression, returning all remaing "compressed" data.

Returns
bytesan empty bytestring
Raises
ValueErrorwhen called more than once.
_flush_called: bool =

Undocumented