CyclicRedundancyCheck

A helper object for calculating CRC-32 for a given slice of bytes.

Functions

Link copied to clipboard

Computes a 32-bit CRC for the array, starting at zero and ending at the array's length.

fun computeCrc32(buffer: ByteBuf, start: Int, end: Int): Int

Computes a 32-bit CRC for the buffer, starting at start and ending before end.