remainderBytes method
Computes the internal unfinalized remainder of unsigned bytes.
Implementation
BigInt remainderBytes(Iterable<int> bytes) {
var state = initialValue;
for (final byte in bytes) {
if (byte < 0 || byte > 0xff) {
throw RohdHclException('CRC byte $byte is outside the range 0 to 255.');
}
state = advance(state, BigInt.from(byte), beatWidth: 8);
}
return state;
}