The ZStream type exposes the following members.

Constructors

  Name Description
Public method ZStream()()()()
Initializes a new instance of the ZStream class using an Adler checksum.
Public method ZStream(Boolean)
Initializes a new instance of the ZStream class.

Methods

  Name Description
Public method deflate
Compresses as much data as possible, and stops when the input buffer becomes empty or the output buffer becomes full.
Public method deflateEnd
Frees all dynamically allocated data structures for this stream, discards any unprocessed input, and does not flush any pending output.
Public method deflateInit(Int32)
Initializes the internal stream state for compression.
Public method deflateInit(Int32, Int32)
Initializes the internal stream state for compression.
Public method deflateParams
Dynamically updates the compression level and compression strategy.
Public method deflateSetDictionary
Initializes the compression dictionary from the given byte sequence without producing any compressed output.
Public method Equals (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method inflate
Decompresses as much data as possible until the input buffer is exhausted or the output buffer is full.
Public method inflateEnd
Frees all dynamically allocated data structures for this stream, discards any unprocessed input, and does not flush any pending output.
Public method inflateInit()()()()
Initializes the internal stream state for decompression.
Public method inflateInit(Int32)
Initializes the internal stream state for decompression.
Public method inflateSetDictionary
Initializes the decompression dictionary from the given uncompressed byte sequence.
Public method inflateSync
Skips invalid compressed data until a full flush point is found, or until all available input is skipped. No output is provided.
Public method ToString (Inherited from Object.)

Fields

  Name Description
Public field adler
Current checksum value (Adler or CRC32).
Public field avail_in
Number of bytes available in the input buffer.
Public field avail_out
Number of free bytes remaining in output buffer.
Public field msg
Description of the last error (null if no errors).
Public field next_in
Input buffer.
Public field next_in_index
Position of cursor into input buffer.
Public field next_out
Output buffer.
Public field next_out_index
Position of cursor into the output buffer.
Public field total_in
Total number of input bytes read so far.
Public field total_out
Total number of bytes output so far.
Public field Static member Z_BUF_ERROR
No progress possible or no room in output buffer.
Public field Static member Z_DATA_ERROR
Input data is corrupted (wrong format or checksum).
Public field Static member Z_ERRNO
File error.
Public field Static member Z_MEM_ERROR
Not enough memory.
Public field Static member Z_NEED_DICT
A preset dictionary is needed at this point.
Public field Static member Z_OK
No error.
Public field Static member Z_STREAM_END
End of stream detected.
Public field Static member Z_STREAM_ERROR
Stream structure is inconsistent (input/output buffers are null for example).
Public field Static member Z_VERSION_ERROR
Incompatible ZLIB version.

See Also