ZLibCompressionStrategy Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines the compression algorithms that can be used for DeflateStream, GZipStream, and ZLibStream.
public enum class ZLibCompressionStrategy
public enum ZLibCompressionStrategy
type ZLibCompressionStrategy =
Public Enum ZLibCompressionStrategy
- Inheritance
Fields
Name | Value | Description |
---|---|---|
Default | 0 | Used for normal data. |
Filtered | 1 | Used for data produced by a filter (or predictor). The effect of Filtered is to force more Huffman coding and less string matching; it's an intermediate between Default and HuffmanOnly. |
HuffmanOnly | 2 | Used to force Huffman encoding only (no string match). |
RunLengthEncoding | 3 | Used to limit match distances to one (run-length encoding). Gives better compression for PNG image data. |
Fixed | 4 | Prevents the use of dynamic Huffman codes, allowing for a simpler decoder for special applications. |