-
-
Notifications
You must be signed in to change notification settings - Fork 3
zlib.Deflater.Strategy
Andrew Lambert edited this page Nov 26, 2022
·
9 revisions
Dim Strategy As Integer
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. |
Wiki home | Project page | Bugs | Become a sponsor
Text and code examples are Copyright ©2014-24 Andrew Lambert, offered under the CC BY-SA 3.0 License.