Interface IChecksum
Interface to compute a data checksum used by checked input/output streams. A data checksum can be updated by one byte or with a byte array. After each update the value of the current checksum can be returned by calling
getValue. The complete checksum object can also be reset
so it can be used again with new data.
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public interface IChecksum
Properties
Value
Returns the data checksum computed so far.
Declaration
long Value { get; }
Property Value
|
System.Int64
|
Methods
Reset()
Resets the data checksum as if no update was ever called.
Declaration
void Reset()
Update(Byte[])
Updates the data checksum with the bytes taken from the array.
Declaration
void Update(byte[] buffer)
Parameters
|
System.Byte[]
buffer
buffer an array of bytes |
Update(Byte[], Int32, Int32)
Adds the byte array to the data checksum.
Declaration
void Update(byte[] buffer, int offset, int count)
Parameters
|
System.Byte[]
buffer
The buffer which contains the data |
|
System.Int32
offset
The offset in the buffer where the data starts |
|
System.Int32
count
the number of data bytes to add. |
Update(Int32)
Adds one byte to the data checksum.
Declaration
void Update(int bval)
Parameters
|
System.Int32
bval
the data value to add. The high byte of the int is ignored. |