![]() |
Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
|
Implements the common functionality needed for all Codecs More...


Public Member Functions | |
| CodecBase () | |
Initializes a new instance of the CodeBase class. More... | |
| void | Add (byte[] data) |
| Adds more data to the codec to be processed. More... | |
| abstract void | Add (byte[] data, int offset, int count) |
| Adds more data to the codec to be processed. More... | |
| abstract void | Finish () |
| Finishes up any pending data that needs to be processed and handled. More... | |
| void | Dispose () |
| Releases any unmanaged resources and calls the CleanUp() method of the derived class More... | |
Protected Member Functions | |
| void | OnDataAvailable () |
| Fires the DataAvailable event More... | |
| abstract void | CleanUp () |
| Performs any codec specific cleanup More... | |
| void | copyInput (byte[] data, int startIndex, int count) |
| Copies a number of bytes to the internal codec buffer - ready for proccesing More... | |
| void | resetOutput () |
| Resets the internal output buffers to a known state - ready for processing More... | |
| void | setChecksum (uint newSum) |
| Updates the running checksum property More... | |
Protected Attributes | |
| bool | _isDisposed = false |
| True if the object instance has been disposed, false otherwise More... | |
| const int | kBufferSize = 16384 |
| The size of the internal buffers More... | |
Properties | |
| uint | Checksum [get] |
| Gets the checksum of the data that has been added so far More... | |
Properties inherited from DotZLib.Codec | |
| uint | Checksum [get] |
| Gets the checksum of the data that has been added so far More... | |
Events | |
| DataAvailableHandler | DataAvailable |
| Occurs when more processed data are available. More... | |
Events inherited from DotZLib.Codec | |
| DataAvailableHandler | DataAvailable |
| Occurs when more processed data are available. More... | |
Implements the common functionality needed for all Codecs
Definition at line 16 of file CodecBase.cs.
|
inline |
Initializes a new instance of the CodeBase class.
Definition at line 50 of file CodecBase.cs.
|
inline |
Adds more data to the codec to be processed.
| data | Byte array containing the data to be added to the codec |
Adding data may, or may not, raise the DataAvailable event
Implements DotZLib.Codec.
Definition at line 90 of file CodecBase.cs.
|
pure virtual |
Adds more data to the codec to be processed.
| data | Byte array containing the data to be added to the codec |
| offset | The index of the first byte to add from data |
| count | The number of bytes to add |
Adding data may, or may not, raise the DataAvailable event
This must be implemented by a derived class
Implements DotZLib.Codec.
Implemented in DotZLib.Deflater, and DotZLib.Inflater.
|
protectedpure virtual |
Performs any codec specific cleanup
This must be implemented by a derived class
Implemented in DotZLib.Deflater, and DotZLib.Inflater.
|
inlineprotected |
Copies a number of bytes to the internal codec buffer - ready for proccesing
| data | The byte array that contains the data to copy |
| startIndex | The index of the first byte to copy |
| count | The number of bytes to copy from data |
Definition at line 168 of file CodecBase.cs.
|
inline |
Releases any unmanaged resources and calls the CleanUp() method of the derived class
Definition at line 131 of file CodecBase.cs.
|
pure virtual |
Finishes up any pending data that needs to be processed and handled.
This must be implemented by a derived class
Implements DotZLib.Codec.
Implemented in DotZLib.Deflater, and DotZLib.Inflater.
|
inlineprotected |
Fires the DataAvailable event
Definition at line 75 of file CodecBase.cs.
|
inlineprotected |
Resets the internal output buffers to a known state - ready for processing
Definition at line 180 of file CodecBase.cs.
|
inlineprotected |
Updates the running checksum property
| newSum | The new checksum value |
Definition at line 191 of file CodecBase.cs.
|
protected |
True if the object instance has been disposed, false otherwise
Definition at line 30 of file CodecBase.cs.
|
protected |
The size of the internal buffers
Definition at line 35 of file CodecBase.cs.
|
get |
Gets the checksum of the data that has been added so far
Definition at line 114 of file CodecBase.cs.
| DataAvailableHandler DotZLib.CodecBase.DataAvailable |
Occurs when more processed data are available.
Definition at line 70 of file CodecBase.cs.