Skip to content

zlib.Deflater.Strategy

Andrew Lambert edited this page Nov 26, 2022 · 9 revisions

zlib.Deflater.Strategy

Property declaration

 Dim Strategy As Integer

Remarks

Gets and sets the compression Strategy for the stream. Can be changed at any time. The compression strategy can be one of these constants:

Name Comment
Z_DEFAULT_STRATEGY Use a combination of string-matching and Huffman Encoding. Suitable for general purposes.
Z_RLE Use run-length encoding, which is like string-matching but with a window of only 1 byte. Suitable for data containing long sequences of identical bytes.
Z_FILTERED Emphasize Huffman Encoding over string-matching. Suitable for data containing few identical sequences of bytes.
Z_HUFFMAN_ONLY Force Huffman Encoding only. Suitable for data containing even fewer identical sequences of bytes.
Z_FIXED Use the fixed Huffman codes defined in RFC1951#3.2.6.

Entry-level points of interest denoted by "☜"



Clone this wiki locally