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);Parameters
| Name | Type | Description |
|---|---|---|
type | TapBlockType | The block type to include in the checksum. |
data | IEnumerable<Byte> | The data to checksum. |
Returns
A tuple containing the calculated checksum and the data as a byte array.