b.tuned_gzip : module documentation

Part of bzrlib

Bzrlib specific gzip tunings. We plan to feed these to the upstream gzip.
Function U32 Return i as an unsigned integer, assuming it fits in 32 bits.
Function LOWU32 Return the low-order 32 bits of an int, as a non-negative int.
Function bytes_to_gzip Create a gzip file containing bytes and return its content.
Function chunks_to_gzip Create a gzip file containing chunks and return its content.
Class GzipFile Knit tuned version of GzipFile.
def U32(i):
Return i as an unsigned integer, assuming it fits in 32 bits.

If it's >= 2GB when viewed as a 32-bit unsigned int, return a long.

def LOWU32(i):
Return the low-order 32 bits of an int, as a non-negative int.
def bytes_to_gzip(bytes, factory=zlib.compressobj, level=zlib.Z_DEFAULT_COMPRESSION, method=zlib.DEFLATED, width=-zlib.MAX_WBITS, mem=zlib.DEF_MEM_LEVEL, crc32=zlib.crc32):
Create a gzip file containing bytes and return its content.
def chunks_to_gzip(chunks, factory=zlib.compressobj, level=zlib.Z_DEFAULT_COMPRESSION, method=zlib.DEFLATED, width=-zlib.MAX_WBITS, mem=zlib.DEF_MEM_LEVEL, crc32=zlib.crc32):
Create a gzip file containing chunks and return its content.
ParameterschunksAn iterable of strings. Each string can have arbitrary layout.
API Documentation for Bazaar, generated by pydoctor at 2014-10-20 00:01:35.