Class ReflectedIntCrc

All Implemented Interfaces:
Hash, IncrementalIntHash, StatelessHash, StatelessIntHash

final class ReflectedIntCrc extends AbstractIntCrc
Implements a "reflected" LSB-first int-width CRC function using a lookup table.
  • Constructor Details

    • ReflectedIntCrc

      ReflectedIntCrc(String algorithm, int width, int poly, int init, int xorOut)
  • Method Details

    • initial

      protected int initial()
      Description copied from class: AbstractIncrementalIntHash
      The initial state of the hash function, which is the same as the output value for an empty input sequence.
      Overrides:
      initial in class AbstractIntCrc
      Returns:
      the initial hash state/output
    • resumeRaw

      protected int resumeRaw(int crc, byte[] input, int index, int length)
      Specified by:
      resumeRaw in class AbstractIntCrc