DUNE: Uniform Navigational Environment
2017.01.0
|
8-bit Fletcher Checksum Algorithm.
Implementation of the 8-bit Fletcher Checksum Algorithm as described in RFC 1146.
Static Public Member Functions | |
static void | compute (const uint8_t *buffer, int length, uint8_t &a, uint8_t &b) |
|
inlinestatic |
Compute the 8-bit Fletcher Checksum of a byte buffer D.
The result is returned in the accumulators A and B that should be initilized to 0 before calling this method.
buffer | byte buffer. |
length | byte buffer length. |
a | accumulator A (sum of all bytes). |
b | accumulator B (sum of partial byte sums). |