Table of Contents

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

stream Stream

Input stream

bufferSize int

Size of the buffer to use

cancellationToken CancellationToken

Optional cancellation token

Returns

Task<uint>

CRC32 checksum