PageRenderTime 49ms CodeModel.GetById 24ms RepoModel.GetById 1ms app.codeStats 0ms

/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
  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. namespace Delta.Utilities.Compression.Deflaters
  5. {
  6. /// <summary>
  7. /// Deflate strategy
  8. /// </summary>
  9. public enum DeflateStrategy
  10. {
  11. /// <summary>
  12. /// The default strategy.
  13. /// </summary>
  14. Default = 0,
  15. /// <summary>
  16. /// This strategy will only allow longer string repetitions.
  17. /// It is useful for random data with a small character set.
  18. /// </summary>
  19. Filtered = 1,
  20. /// <summary>
  21. /// This strategy will not look for string repetitions at all.
  22. /// It only encodes with Huffman trees (which means, that more common
  23. /// characters get a smaller encoding).
  24. /// </summary>
  25. HuffmanOnly = 2
  26. }
  27. }