Logo Search packages:      
Sourcecode: zlib version File versions

DotZLib::CodecBase Class Reference

Inheritance diagram for DotZLib::CodecBase:

DotZLib::Codec DotZLib::Deflater DotZLib::Inflater

List of all members.

Detailed Description

Implements the common functionality needed for all Codecs.

Definition at line 16 of file CodecBase.cs.

Public Member Functions

abstract void Add (byte[] data, int offset, int count)
 Adds more data to the codec to be processed.
void Add (byte[] data)
 Adds more data to the codec to be processed.
 CodecBase ()
 Initializes a new instance of the CodeBase class.
void Dispose ()
 Releases any unmanaged resources and calls the CleanUp() method of the derived class.
abstract void Finish ()
 Finishes up any pending data that needs to be processed and handled.

Protected Member Functions

abstract void CleanUp ()
 Performs any codec specific cleanup.
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

void CleanUp (bool isDisposing)
 ~CodecBase ()
 Destroys this instance.

Private Attributes

uint _checksum = 0
GCHandle _hInput
GCHandle _hOutput
byte[] _inBuffer = new byte[kBufferSize]
byte[] _outBuffer = new byte[kBufferSize]
internal ZStream _ztream = new ZStream()
 Instance of the internal zlib buffer structure that is passed to all functions in the zlib dll.

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

Generated by  Doxygen 1.6.0   Back to index