Class CRC32
- Namespace
- DuetWebServer.Utility
- Assembly
- DuetWebServer.dll
Functions for CRC32 calculation
public static class CRC32
- Inheritance
-
CRC32
- Inherited Members
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
public static Task<uint> Calculate(Stream stream, int bufferSize = 8192, CancellationToken cancellationToken = default)
Parameters
streamStreamInput stream
bufferSizeintSize of the buffer to use
cancellationTokenCancellationTokenOptional cancellation token