CRC32Params constructor

CRC32Params(
  1. int poly, {
  2. int seed = 0,
  3. int xorOut = 0,
  4. bool reversed = false,
})

Create a custom polynomial for CRC-32

Parameters:

  • seed: initial counter to start from
  • xorOut: the value to xor with the final output
  • reversed: to use reversed or reflected polynomial and input

Implementation

CRC32Params(
  this.poly, {
  this.seed = 0,
  this.xorOut = 0,
  this.reversed = false,
}) : name = poly.toRadixString(16);