Module _Gz
- Description
Low-level interface to zlib.
- Note
You typically do not want to access this module directly. Use the Gz module instead.
- See also
- Constant
DEFAULT_STRATEGY
constant_Gz.DEFAULT_STRATEGY- Description
The default strategy as selected in the zlib library.
- Constant
FILTERED
constant_Gz.FILTERED- Description
This strategy is intented for data created by a filter or predictor and will put more emphasis on huffman encoding and less on LZ string matching. This is between DEFAULT_STRATEGY and HUFFMAN_ONLY.
- Constant
FINISH
constant_Gz.FINISH- Description
Deflate flag: Append 'end of data' marker, and return all remaining data.
- See also
- Constant
FIXED
constant_Gz.FIXED- Description
In this mode dynamic huffman codes are disabled, allowing for a simpler decoder for special applications. This mode is not available in all zlib versions.
- Constant
HUFFMAN_ONLY
constant_Gz.HUFFMAN_ONLY- Description
This strategy will turn of string matching completely, only doing huffman encoding. Window size doesn't matter in this mode and the data can be decompressed with a zero size window.
- Constant
NO_FLUSH
constant_Gz.NO_FLUSH- Description
Deflate flag: Return only data that doesn't fit in the internal buffers.
- See also
- Constant
PARTIAL_FLUSH
constant_Gz.PARTIAL_FLUSH- Description
Deflate flag: Return completed data.
- See also
- Constant
RLE
constant_Gz.RLE- Description
This strategy is even closer to the HUFFMAN_ONLY in that it only looks at the latest byte in the window, i.e. a window size of 1 byte is sufficient for decompression. This mode is not available in all zlib versions.