Package com.scurrilous.circe.crc
Class NormalLongCrc
- java.lang.Object
-
- com.scurrilous.circe.impl.AbstractIncrementalLongHash
-
- com.scurrilous.circe.crc.AbstractLongCrc
-
- com.scurrilous.circe.crc.NormalLongCrc
-
- All Implemented Interfaces:
Hash
,IncrementalLongHash
,StatelessHash
,StatelessLongHash
final class NormalLongCrc extends AbstractLongCrc
Implements a "normal" MSB-first long-width CRC function using a lookup table. Does not support bit-widths less than 8.
-
-
Field Summary
-
Fields inherited from class com.scurrilous.circe.crc.AbstractLongCrc
bitWidth
-
-
Constructor Summary
Constructors Constructor Description NormalLongCrc(java.lang.String algorithm, int bitWidth, long poly, long init, long xorOut)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected long
resumeRaw(long crc, byte[] input, int index, int length)
-
Methods inherited from class com.scurrilous.circe.crc.AbstractLongCrc
algorithm, initial, length, reflect, resumeUnchecked
-
Methods inherited from class com.scurrilous.circe.impl.AbstractIncrementalLongHash
calculate, calculate, calculate, calculate, createStateful, resume, resume, resume, resume, supportsUnsafe
-
-
-
-
Method Detail
-
resumeRaw
protected long resumeRaw(long crc, byte[] input, int index, int length)
- Specified by:
resumeRaw
in classAbstractLongCrc
-
-