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 FINISH

constant _Gz.FINISH

Description

Deflate flag: Append 'end of data' marker, and return all remaining data.

See also

deflate()->deflate()


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

deflate()->deflate()


Constant PARTIAL_FLUSH

constant _Gz.PARTIAL_FLUSH

Description

Deflate flag: Return completed data.

See also

deflate()->deflate()


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.


Constant SYNC_FLUSH

constant _Gz.SYNC_FLUSH

Description

Deflate flag: Return completed data.

See also

deflate()->deflate()