IdeaBlade DevForce 2010 Help Reference
CompressionStrategy Enumeration
See Also  Send Feedback
IdeaBlade.Core Assembly > Ionic.Zlib Namespace : CompressionStrategy Enumeration



Describes options for how the compression algorithm is executed. Different strategies work better on different sorts of data. The strategy parameter can affect the compression ratio and the speed of compression but not the correctness of the compresssion.

Syntax

Visual Basic (Declaration) 
Public Enum CompressionStrategy 
   Inherits System.Enum
   Implements System.IComparableSystem.IConvertibleSystem.IFormattable 
Visual Basic (Usage)Copy Code
Dim instance As CompressionStrategy
C# 
public enum CompressionStrategy : System.Enum, System.IComparableSystem.IConvertibleSystem.IFormattable  
C++/CLI 
public enum class CompressionStrategy : public System.Enum, System.IComparableSystem.IConvertibleSystem.IFormattable  

Members

MemberDescription
Default The default strategy is probably the best for normal data.
FilteredThe Filtered strategy is intended to be used most effectively with data produced by a filter or predictor. By this definition, filtered data consists mostly of small values with a somewhat random distribution. In this case, the compression algorithm is tuned to compress them better. The effect of Filtered is to force more Huffman coding and less string matching; it is a half-step between Default and HuffmanOnly.
HuffmanOnlyUsing HuffmanOnly will force the compressor to do Huffman encoding only, with no string matching.

Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         Ionic.Zlib.CompressionStrategy

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.