Package com.scurrilous.circe.crc
Class NormalIntCrc
- java.lang.Object
-
- com.scurrilous.circe.impl.AbstractIncrementalIntHash
-
- com.scurrilous.circe.crc.AbstractIntCrc
-
- com.scurrilous.circe.crc.NormalIntCrc
-
- All Implemented Interfaces:
Hash
,IncrementalIntHash
,StatelessHash
,StatelessIntHash
final class NormalIntCrc extends AbstractIntCrc
Implements a "normal" MSB-first int-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.AbstractIntCrc
bitWidth
-
-
Constructor Summary
Constructors Constructor Description NormalIntCrc(java.lang.String algorithm, int bitWidth, int poly, int init, int xorOut)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
resumeRaw(int crc, byte[] input, int index, int length)
-
Methods inherited from class com.scurrilous.circe.crc.AbstractIntCrc
algorithm, initial, length, reflect, resumeUnchecked
-
Methods inherited from class com.scurrilous.circe.impl.AbstractIncrementalIntHash
calculate, calculate, calculate, calculate, createStateful, resume, resume, resume, resume, supportsUnsafe
-
-
-
-
Method Detail
-
resumeRaw
protected int resumeRaw(int crc, byte[] input, int index, int length)
- Specified by:
resumeRaw
in classAbstractIntCrc
-
-