Logo Search packages:      
Sourcecode: velvet version File versions

DotZLib::Deflater Class Reference

Inheritance diagram for DotZLib::Deflater:

DotZLib::CodecBase DotZLib::Codec

List of all members.

Detailed Description

Implements a data compressor, using the deflate algorithm in the ZLib dll.

Definition at line 18 of file Deflater.cs.

Public Member Functions

void Add (byte[] data)
 Adds more data to the codec to be processed.
override void Add (byte[] data, int offset, int count)
 Adds more data to the codec to be processed.
 Deflater (CompressLevel level)
 Constructs an new instance of the Deflater.
void Dispose ()
 Releases any unmanaged resources and calls the CleanUp() method of the derived class.
override void Finish ()
 Finishes up any pending data that needs to be processed and handled.

Protected Member Functions

override void CleanUp ()
 Closes the internal zlib deflate stream.
void copyInput (byte[] data, int startIndex, int count)
 Copies a number of bytes to the internal codec buffer - ready for proccesing.
void OnDataAvailable ()
 Fires the DataAvailable event.
void resetOutput ()
 Resets the internal output buffers to a known state - ready for processing.
void setChecksum (uint newSum)
 Updates the running checksum property.

Protected Attributes

bool _isDisposed = false
 True if the object instance has been disposed, false otherwise.
const int kBufferSize = 16384
 The size of the internal buffers.


uint Checksum [get]
 Gets the checksum of the data that has been added so far.


DataAvailableHandler DataAvailable
 Occurs when more processed data are available.

Private Member Functions

static int deflate (ref ZStream sz, int flush)
static int deflateEnd (ref ZStream sz)
static int deflateInit_ (ref ZStream sz, int level, string vs, int size)
static int deflateReset (ref ZStream sz)

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index