PageRenderTime 81ms CodeModel.GetById 40ms app.highlight 1ms RepoModel.GetById 39ms app.codeStats 0ms

/Utilities/Compression/Deflaters/DeflateStrategy.cs

#
C# | 30 lines | 9 code | 3 blank | 18 comment | 0 complexity | f7c364187864c7749efb488874429d1a MD5 | raw file
 1// Based on Mike Krueger's SharpZipLib, Copyright (C) 2001 (GNU license).
 2// Authors of the original java version: Jochen Hoenicke, John Leuner
 3// See http://www.ISeeSharpCode.com for more information.
 4
 5namespace Delta.Utilities.Compression.Deflaters
 6{
 7	/// <summary>
 8	/// Deflate strategy
 9	/// </summary>
10	public enum DeflateStrategy
11	{
12		/// <summary>
13		/// The default strategy.
14		/// </summary>
15		Default = 0,
16
17		/// <summary>
18		/// This strategy will only allow longer string repetitions.
19		/// It is useful for random data with a small character set.
20		/// </summary>
21		Filtered = 1,
22
23		/// <summary>
24		/// This strategy will not look for string repetitions at all.
25		/// It only encodes with Huffman trees (which means, that more common
26		/// characters get a smaller encoding).
27		/// </summary>
28		HuffmanOnly = 2
29	}
30}