/Utilities/Compression/Deflaters/DeflateStrategy.cs
C# | 30 lines | 9 code | 3 blank | 18 comment | 0 complexity | f7c364187864c7749efb488874429d1a MD5 | raw file
Possible License(s): Apache-2.0
- // Based on Mike Krueger's SharpZipLib, Copyright (C) 2001 (GNU license).
- // Authors of the original java version: Jochen Hoenicke, John Leuner
- // See http://www.ISeeSharpCode.com for more information.
-
- namespace Delta.Utilities.Compression.Deflaters
- {
- /// <summary>
- /// Deflate strategy
- /// </summary>
- public enum DeflateStrategy
- {
- /// <summary>
- /// The default strategy.
- /// </summary>
- Default = 0,
-
- /// <summary>
- /// This strategy will only allow longer string repetitions.
- /// It is useful for random data with a small character set.
- /// </summary>
- Filtered = 1,
-
- /// <summary>
- /// This strategy will not look for string repetitions at all.
- /// It only encodes with Huffman trees (which means, that more common
- /// characters get a smaller encoding).
- /// </summary>
- HuffmanOnly = 2
- }
- }