Class ChecksumCalculator
Checksum calculator, based on Adler32 algorithm.
Inherited Members
Namespace: Syncfusion.Compression
Assembly: Syncfusion.Compression.NET.dll
Syntax
public class ChecksumCalculator
Constructors
ChecksumCalculator()
Declaration
public ChecksumCalculator()
Methods
ChecksumGenerate(byte[], int, int)
Generates checksum by calculating checksum of the given buffer.
Declaration
public static long ChecksumGenerate(byte[] buffer, int offset, int length)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | buffer | Data byte array. |
| int | offset | Offset in the buffer. |
| int | length | Length of data to be used from the stream. |
Returns
| Type |
|---|
| long |
ChecksumUpdate(ref long, byte[], int, int)
Updates checksum by calculating checksum of the given buffer and adding it to current value.
Declaration
public static void ChecksumUpdate(ref long checksum, byte[] buffer, int offset, int length)
Parameters
| Type | Name | Description |
|---|---|---|
| long | checksum | Current checksum. |
| byte[] | buffer | Data byte array. |
| int | offset | Offset in the buffer. |
| int | length | Length of data to be used from the stream. |