Module _Gz

Inheritance graph
_Gz 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

Gz


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 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 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.