getCrc64_ function

int getCrc64_(
  1. List<int> array, [
  2. int crc = 0
])

Get the CRC-64 checksum of the given array.

you can append bytes to an already computed crc by specifying the previous crc value.

Implementation

int getCrc64_(List<int> array, [int crc = 0]) {
  crc ^= 0xffffffffffffffff;
  for (var e in array) {
    crc = _crc64Table[(crc & 0xff) ^ e] ^ shiftDown64(crc);
  }
  return crc ^ 0xffffffffffffffff;
}