Skip to content

TapBlock.CalculateChecksum Method ​

Definition ​

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

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

View source

Parameters ​

NameTypeDescription
typeTapBlockTypeThe block type to include in the checksum.
dataIEnumerable<Byte>The data to checksum.

Returns ​

ValueTuple<Byte, Byte[]>

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