Implements the common functionality needed for all ChecksumGenerators
More...
|
| ChecksumGeneratorBase () |
| Initializes a new instance of the checksum generator base - the current checksum is set to zero More...
|
|
| ChecksumGeneratorBase (uint initialValue) |
| Initializes a new instance of the checksum generator basewith a specified value More...
|
|
void | Reset () |
| Resets the current checksum to zero More...
|
|
abstract void | Update (byte[] data, int offset, int count) |
| Updates the current checksum with part of an array of bytes More...
|
|
void | Update (byte[] data) |
| Updates the current checksum with an array of bytes. More...
|
|
void | Update (string data) |
| Updates the current checksum with the data from a string More...
|
|
void | Update (string data, Encoding encoding) |
| Updates the current checksum with the data from a string, using a specific encoding More...
|
|
|
uint | Value [get] |
| Gets the current checksum value More...
|
|
uint | Value [get] |
| Gets the current value of the checksum More...
|
|
Implements the common functionality needed for all ChecksumGenerators
DotZLib.ChecksumGeneratorBase.ChecksumGeneratorBase |
( |
| ) |
|
|
inline |
Initializes a new instance of the checksum generator base - the current checksum is set to zero
DotZLib.ChecksumGeneratorBase.ChecksumGeneratorBase |
( |
uint |
initialValue | ) |
|
|
inline |
Initializes a new instance of the checksum generator basewith a specified value
- Parameters
-
initialValue | The value to set the current checksum to |
void DotZLib.ChecksumGeneratorBase.Reset |
( |
| ) |
|
|
inline |
abstract void DotZLib.ChecksumGeneratorBase.Update |
( |
byte[] |
data, |
|
|
int |
offset, |
|
|
int |
count |
|
) |
| |
|
pure virtual |
Updates the current checksum with part of an array of bytes
- Parameters
-
data | The data to update the checksum with |
offset | Where in data to start updating |
count | The number of bytes from data to use |
- Exceptions
-
ArgumentException | The sum of offset and count is larger than the length of data |
NullReferenceException | data is a null reference |
ArgumentOutOfRangeException | Offset or count is negative. |
All the other Update
methods are implmeneted in terms of this one. This is therefore the only method a derived class has to implement
Implements DotZLib.ChecksumGenerator.
Implemented in DotZLib.AdlerChecksum, and DotZLib.CRC32Checksum.
void DotZLib.ChecksumGeneratorBase.Update |
( |
byte[] |
data | ) |
|
|
inline |
Updates the current checksum with an array of bytes.
- Parameters
-
data | The data to update the checksum with |
Implements DotZLib.ChecksumGenerator.
void DotZLib.ChecksumGeneratorBase.Update |
( |
string |
data | ) |
|
|
inline |
Updates the current checksum with the data from a string
- Parameters
-
data | The string to update the checksum with |
The characters in the string are converted by the UTF-8 encoding
Implements DotZLib.ChecksumGenerator.
void DotZLib.ChecksumGeneratorBase.Update |
( |
string |
data, |
|
|
Encoding |
encoding |
|
) |
| |
|
inline |
Updates the current checksum with the data from a string, using a specific encoding
- Parameters
-
data | The string to update the checksum with |
encoding | The encoding to use |
Implements DotZLib.ChecksumGenerator.
uint DotZLib.ChecksumGeneratorBase._current |
|
protected |
The value of the current checksum
uint DotZLib.ChecksumGeneratorBase.Value |
|
get |
Gets the current checksum value
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/ChecksumImpl.cs