Class Adler32
Adler-32 checksum algorithm.
Namespace: PleOps.XdeltaSharp
Assembly: PleOps.XdeltaSharp.dll
Syntax
public static class Adler32
Remarks
For more information: https://en.wikipedia.org/wiki/Adler-32.
Methods
| Improve this Doc View SourceRun(Stream, Int64, UInt32)
Computes the checksum Adler-32 from a stream.
Declaration
public static uint Run(Stream stream, long length, uint start = 1U)
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | The stream to read data. It starts at the current position. |
Int64 | length | The amount of bytes to read from the stream for the checksum. |
UInt32 | start | The start value of the checksum. |
Returns
Type | Description |
---|---|
UInt32 | The Adler-32 checksum of the data. |