Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

enum System.​IO.​Compression.​ZLibCompressionStrategy

Assembly: System.IO.Compression

Defines the compression algorithms that can be used for <see cref="T:System.IO.Compression.DeflateStream" /> , <see cref="T:System.IO.Compression.GZipStream" /> , and <see cref="T:System.IO.Compression.ZLibStream" /> .

Values

Default
Used for normal data.
Filtered
<para>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.</para>
HuffmanOnly
Used to force Huffman encoding only (no string match).
RunLengthEncoding
Used to limit match distances to one (run-length encoding). Gives better compression for PNG image data.
Fixed
Prevents the use of dynamic Huffman codes, allowing for a simpler decoder for special applications.