Skip to content

TapBlock.CalculateChecksum Method

Definition

Calculates the XOR checksum for the specified block type and data.

protected static ValueTuple<Byte, Byte[]> CalculateChecksum(TapBlockType type, IEnumerable<Byte> data);

View source

Parameters

Name Type Description
type TapBlockType The block type to include in the checksum.
data IEnumerable<Byte> The data to checksum.

Returns

ValueTuple<Byte, Byte[]>

A tuple containing the calculated checksum and the data as a byte array.