Implements the common functionality needed for all Codecs
More...
|
| 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...
|
|
|
uint | Checksum [get] |
| Gets the checksum of the data that has been added so far More...
|
|
uint | Checksum [get] |
| Gets the checksum of the data that has been added so far More...
|
|
Implements the common functionality needed for all Codecs
DotZLib.CodecBase.CodecBase |
( |
| ) |
|
|
inline |
Initializes a new instance of the CodeBase
class.
void DotZLib.CodecBase.Add |
( |
byte[] |
data | ) |
|
|
inline |
Adds more data to the codec to be processed.
- Parameters
-
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.
abstract void DotZLib.CodecBase.Add |
( |
byte[] |
data, |
|
|
int |
offset, |
|
|
int |
count |
|
) |
| |
|
pure virtual |
Adds more data to the codec to be processed.
- Parameters
-
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.
abstract void DotZLib.CodecBase.CleanUp |
( |
| ) |
|
|
protectedpure virtual |
void DotZLib.CodecBase.copyInput |
( |
byte[] |
data, |
|
|
int |
startIndex, |
|
|
int |
count |
|
) |
| |
|
inlineprotected |
Copies a number of bytes to the internal codec buffer - ready for proccesing
- Parameters
-
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 |
void DotZLib.CodecBase.Dispose |
( |
| ) |
|
|
inline |
Releases any unmanaged resources and calls the CleanUp() method of the derived class
abstract void DotZLib.CodecBase.Finish |
( |
| ) |
|
|
pure virtual |
void DotZLib.CodecBase.OnDataAvailable |
( |
| ) |
|
|
inlineprotected |
void DotZLib.CodecBase.resetOutput |
( |
| ) |
|
|
inlineprotected |
Resets the internal output buffers to a known state - ready for processing
void DotZLib.CodecBase.setChecksum |
( |
uint |
newSum | ) |
|
|
inlineprotected |
Updates the running checksum property
- Parameters
-
newSum | The new checksum value |
bool DotZLib.CodecBase._isDisposed = false |
|
protected |
True if the object instance has been disposed, false otherwise
const int DotZLib.CodecBase.kBufferSize = 16384 |
|
protected |
The size of the internal buffers
uint DotZLib.CodecBase.Checksum |
|
get |
Gets the checksum of the data that has been added so far
Occurs when more processed data are available.
The documentation for this class was generated from the following file:
- /home/ubuntu/jenkins/workspace/tw-c-sdk-cmake-linux-build-test-master/tw-c-sdk/src/thirdParty/zlib/contrib/dotzlib/DotZLib/CodecBase.cs