crc
Provides support for calculating cyclic redundancy checks.
Provides support for calculating cyclic redundancy checks.
- See also
Value members
Concrete methods
Constructs a table-based CRC function using the specified polynomial.
Constructs a table-based CRC function using the specified polynomial.
Each of the input vectors must be the same size.
- Returns
function that calculates a
n
-bit CRC wheren = poly.size
Calculates a bitwise CRC of the specified value.
Calculates a bitwise CRC of the specified value.
If calculating a lot of CRCs, prefer the apply
method, which precomputes a lookup table
and uses it in each CRC calculation.
- Returns
function that calculates a
n
-bit CRC wheren = poly.size
Constructs a 32-bit, table-based CRC function using the specified polynomial.
Constructs a 32-bit, table-based CRC function using the specified polynomial.
- Returns
function that calculates a 32-bit CRC