Click or drag to resize

ZlibCodec Class

Encoder and Decoder for ZLIB and DEFLATE (IETF RFC1950 and RFC1951).
Inheritance Hierarchy
SystemObject
  Atalasoft.PdfDoc.MidLevel.Ionic.ZlibZlibCodec

Namespace:  Atalasoft.PdfDoc.MidLevel.Ionic.Zlib
Assembly:  Atalasoft.PdfDoc (in Atalasoft.PdfDoc.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public sealed class ZlibCodec

The ZlibCodec type exposes the following members.

Constructors
  NameDescription
Public methodZlibCodec
Create a ZlibCodec.
Public methodZlibCodec(CompressionMode)
Create a ZlibCodec that either compresses or decompresses.
Top
Properties
  NameDescription
Public propertyAdler32
The Adler32 checksum on the data transferred through the codec so far. You probably don't need to look at this.
Top
Methods
  NameDescription
Public methodCode exampleDeflate
Deflate one batch of data.
Public methodEndDeflate
End a deflation session.
Public methodEndInflate
Ends an inflation session.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodCode exampleInflate
Inflate the data in the InputBuffer, placing the result in the OutputBuffer.
Public methodCode exampleInitializeDeflate
Initialize the ZlibCodec for deflation operation.
Public methodInitializeDeflate(CompressionLevel)
Initialize the ZlibCodec for deflation operation, using the specified CompressionLevel.
Public methodInitializeDeflate(CompressionLevel, Boolean)
Initialize the ZlibCodec for deflation operation, using the specified CompressionLevel, and the explicit flag governing whether to emit an RFC1950 header byte pair.
Public methodInitializeDeflate(CompressionLevel, Int32)
Initialize the ZlibCodec for deflation operation, using the specified CompressionLevel, and the specified number of window bits.
Public methodInitializeDeflate(CompressionLevel, Int32, Boolean)
Initialize the ZlibCodec for deflation operation, using the specified CompressionLevel, the specified number of window bits, and the explicit flag governing whether to emit an RFC1950 header byte pair.
Public methodInitializeInflate
Initialize the inflation state.
Public methodInitializeInflate(Boolean)
Initialize the inflation state with an explicit flag to govern the handling of RFC1950 header bytes.
Public methodInitializeInflate(Int32)
Initialize the ZlibCodec for inflation, with the specified number of window bits.
Public methodInitializeInflate(Int32, Boolean)
Initialize the inflation state with an explicit flag to govern the handling of RFC1950 header bytes.
Public methodResetDeflate
Reset a codec for another deflation session.
Public methodSetDeflateParams
Set the CompressionStrategy and CompressionLevel for a deflation session.
Public methodSetDictionary
Set the dictionary to be used for either Inflation or Deflation.
Public methodSyncInflate
I don't know what this does!
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Public fieldAvailableBytesIn
The number of bytes available in the InputBuffer, starting at NextIn.
Public fieldAvailableBytesOut
The number of bytes available in the OutputBuffer, starting at NextOut.
Public fieldCompressLevel
The compression level to use in this codec. Useful only in compression mode.
Public fieldInputBuffer
The buffer from which data is taken.
Public fieldMessage
used for diagnostics, when something goes wrong!
Public fieldNextIn
An index into the InputBuffer array, indicating where to start reading.
Public fieldNextOut
An index into the OutputBuffer array, indicating where to start writing.
Public fieldOutputBuffer
Buffer to store output data.
Public fieldStrategy
The compression strategy to use.
Public fieldTotalBytesIn
Total number of bytes read so far, through all calls to Inflate()/Deflate().
Public fieldTotalBytesOut
Total number of bytes written to the output so far, through all calls to Inflate()/Deflate().
Public fieldWindowBits
The number of Window Bits to use.
Top
Remarks
This class compresses and decompresses data according to the Deflate algorithm and optionally, the ZLIB format, as documented in RFC 1950 - ZLIB and RFC 1951 - DEFLATE.
See Also