Class CRC32
Functions for CRC32 calculation
Inherited Members
Namespace: DuetWebServer.Utility
Assembly: DuetWebServer.dll
Syntax
public static class CRC32
Remarks
The internals of this class originate from Crc32.NET, see https://github.com/force-net/Crc32.NET
Methods
Calculate(Stream, int, CancellationToken)
Calculate the CRC32 checksum for the given stream
Declaration
public static Task<uint> Calculate(Stream stream, int bufferSize = 8192, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | Input stream |
int | bufferSize | Size of the buffer to use |
CancellationToken | cancellationToken | Optional cancellation token |
Returns
Type | Description |
---|---|
Task<uint> | CRC32 checksum |