Inherits DotZLib::ChecksumGenerator.
Inherited by DotZLib::AdlerChecksum, and DotZLib::CRC32Checksum.
Inheritance diagram for DotZLib::ChecksumGeneratorBase:


Public Member Functions | |
| ChecksumGeneratorBase () | |
| Initializes a new instance of the checksum generator base - the current checksum is set to zero. | |
| ChecksumGeneratorBase (uint initialValue) | |
| Initializes a new instance of the checksum generator basewith a specified value. | |
| void | Reset () |
| Resets the current checksum to zero. | |
| abstract void | Update (byte[] data, int offset, int count) |
| Updates the current checksum with part of an array of bytes. | |
| void | Update (byte[] data) |
| Updates the current checksum with an array of bytes. | |
| void | Update (string data) |
| Updates the current checksum with the data from a string. | |
| void | Update (string data, Encoding encoding) |
| Updates the current checksum with the data from a string, using a specific encoding. | |
Protected Attributes | |
| uint | _current |
| The value of the current checksum. | |
Properties | |
| uint | Value |
| Gets the current checksum value. | |
Definition at line 20 of file ChecksumImpl.cs.
|
|
Initializes a new instance of the checksum generator base - the current checksum is set to zero.
Definition at line 31 of file ChecksumImpl.cs. |
|
|
Initializes a new instance of the checksum generator basewith a specified value.
Definition at line 40 of file ChecksumImpl.cs. |
|
|
Resets the current checksum to zero.
Implements DotZLib::ChecksumGenerator. Definition at line 48 of file ChecksumImpl.cs. |
|
||||||||||||
|
Updates the current checksum with the data from a string, using a specific encoding.
Implements DotZLib::ChecksumGenerator. Definition at line 92 of file ChecksumImpl.cs. References Update(). |
|
|
Updates the current checksum with the data from a string.
Implements DotZLib::ChecksumGenerator. Definition at line 82 of file ChecksumImpl.cs. References Update(). |
|
|
Updates the current checksum with an array of bytes.
Implements DotZLib::ChecksumGenerator. Definition at line 72 of file ChecksumImpl.cs. References Update(). |
|
||||||||||||||||
|
Updates the current checksum with part of an array of bytes.
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::CRC32Checksum, and DotZLib::AdlerChecksum. |
|
|
The value of the current checksum.
Definition at line 25 of file ChecksumImpl.cs. |
|
|
Gets the current checksum value.
Implements DotZLib::ChecksumGenerator. Definition at line 53 of file ChecksumImpl.cs. Referenced by DotZLibTests::ChecksumTests::Adler_Data(), and DotZLibTests::ChecksumTests::Adler_Null(). |
1.4.6