getCrc64 function

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

Get the CRC-64 checksum of the given array.

Example:

final text = 'hello world';
final crc = getCrc64(text.codeUnits);
print(crc);  // 5981764153023615706

final file = File('README.md');
final crc = getCrc64(file.readAsBytesSync());
print(crc);

Implementation

int getCrc64(List<int> array, [int crc = 0]) => getCrc64_(array, crc);