Skip to content

zlib.Deflater.Strategy

Andrew Lambert edited this page Jan 11, 2020 · 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 The default strategy. Suitable for general purposes.
Z_FILTERED Emphasize Huffman Encoding over string-matching. Suitable for data containing mostly small values with a uniform distribution.
Z_HUFFMAN_ONLY Force Huffman Encoding only.
Z_RLE Use run-length encoding. Suitable for data containing long sequences of identical 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