quickIntDigest method

int quickIntDigest(
  1. List<int> data
)

Computes a quick integer digest (CRC32) for the provided data.

Parameters:

  • data: The input data for which the CRC32 digest will be calculated.

Implementation

int quickIntDigest(List<int> data) {
  int crc = BinaryOps.mask32;
  for (final byte in data) {
    crc = (crc >> 8) ^ _crcTable[(crc ^ byte) & BinaryOps.mask8];
  }
  return crc ^ BinaryOps.mask32;
}