Class ChecksumCalculator
Checksum calculator, based on Adler32 algorithm.
Inheritance
System.Object
ChecksumCalculator
Namespace: Syncfusion.Compression
Assembly: Syncfusion.Compression.Portable.dll
Syntax
public class ChecksumCalculator : Object
Constructors
ChecksumCalculator()
Declaration
public ChecksumCalculator()
Methods
ChecksumGenerate(Byte[], Int32, Int32)
Generates checksum by calculating checksum of the given buffer.
Declaration
public static long ChecksumGenerate(byte[] buffer, int offset, int length)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | buffer | Data byte array. |
System.Int32 | offset | Offset in the buffer. |
System.Int32 | length | Length of data to be used from the stream. |
Returns
Type |
---|
System.Int64 |
ChecksumUpdate(ref Int64, Byte[], Int32, Int32)
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 |
---|---|---|
System.Int64 | checksum | Current checksum. |
System.Byte[] | buffer | Data byte array. |
System.Int32 | offset | Offset in the buffer. |
System.Int32 | length | Length of data to be used from the stream. |