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



Describes how to flush the current deflate operation.

Syntax

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

Members

MemberDescription
FinishSignals the end of the compression/decompression stream.
FullUse this during compression to specify that all output should be flushed, as with FlushType.Sync, but also, the compression state should be reset so that decompression can restart from this point if previous compressed data has been damaged or if random access is desired. Using FlushType.Full too often can significantly degrade the compression.
NoneNo flush at all.
PartialCloses the current block, but doesn't flush it to the output. Used internally only in hypothetical scenarios. This was supposed to be removed by Zlib, but it is still in use in some edge cases.
SyncUse this during compression to specify that all pending output should be flushed to the output buffer and the output should be aligned on a byte boundary. You might use this in a streaming communication scenario, so that the decompressor can get all input data available so far. When using this with a ZlibCodec, AvailableBytesIn will be zero after the call if enough output space has been provided before the call. Flushing will degrade compression and so it should be used only when necessary.

Remarks

The different FlushType values are useful when using a Deflate in a streaming application.

Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         Ionic.Zlib.FlushType

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.