$finalize method

  1. @override
Uint8List $finalize()
override

Finalizes the message digest with the remaining message block, and returns the output as byte array.

Implementation

@override
Uint8List $finalize() {
  _crc ^= xorOut;
  return Uint8List.fromList([
    _crc >>> 8,
    _crc,
  ]);
}