quickIntDigest static method
Computes a quick integer digest (CRC32) for the provided data.
This method calculates a 32-bit cyclic redundancy check (CRC) integer digest for the input
List<int>
data. It iterates through the data, updating the CRC value accordingly.
Parameters:
data
: The input data for which the CRC32 digest will be calculated.
Returns:
- A 32-bit integer representing the computed CRC32 digest of the input data.
Note: CRC32 is a checksum algorithm used to detect errors in data transmission or storage. The returned integer is a digest of the input data, providing a compact representation of its content.
Implementation
static int quickIntDigest(List<int> data) {
int crc = mask32;
for (final int byte in data) {
crc = (crc >> 8) ^ _crcTable[(crc ^ byte) & mask8];
}
return crc ^ mask32;
}