Class Sum8Checksum
A one-byte sum of every body byte, modulo 256.
public sealed class Sum8Checksum : IDeviceBinaryChecksum
- Inheritance
-
Sum8Checksum
- Implements
- Inherited Members
- Extension Methods
Properties
Size
Gets how many bytes the checksum takes.
public int Size { get; }
Property Value
Methods
Compute(ReadOnlySpan<byte>, Span<byte>)
Computes the checksum of body (every byte before it) into destination.
public void Compute(ReadOnlySpan<byte> body, Span<byte> destination)
Parameters
bodyReadOnlySpan<byte>destinationSpan<byte>