CRC64Params constructor
Create a custom polynomial for CRC-64
Parameters:
seed: initial counter to start fromxorOut: the value to xor with the final outputreversed: to use reversed or reflected polynomial and input
Implementation
CRC64Params(
int poly, {
this.reversed = false,
int seed = 0,
int xorOut = 0,
}) : high = poly ~/ _pow32,
low = poly % _pow32,
seedHigh = seed ~/ _pow32,
seedLow = seed % _pow32,
xorOutHigh = xorOut ~/ _pow32,
xorOutLow = xorOut % _pow32,
name = poly.toRadixString(16);