Table of Contents

Class CRC16

Namespace
DuetControlServer.Utility
Assembly
DuetControlServer.dll

Functions for CRC16 calculation

public static class CRC16
Inheritance
CRC16
Inherited Members

Methods

Calculate(Stream)

Efficient CRC16 calculation based on the CRC16-IBM algorithm

public static ushort Calculate(Stream stream)

Parameters

stream Stream

Input data

Returns

ushort

CRC16 checksum

Calculate(ReadOnlySpan<byte>)

Efficient CRC16 calculation based on the CRC16-IBM algorithm

public static ushort Calculate(ReadOnlySpan<byte> buffer)

Parameters

buffer ReadOnlySpan<byte>

Buffer to calculate the checksum for

Returns

ushort

CRC16 Checksum

Remarks