public class CRC extends Checksum
| Modifier and Type | Field | Description |
|---|---|---|
static int |
CCITT16 |
|
protected int[] |
crc_table |
The fast CRC table.
|
static int |
CRC16 |
|
static int |
CRC32 |
|
static int |
CRC8 |
| Modifier and Type | Method | Description |
|---|---|---|
int[] |
getGenTable(boolean isReflect,
int polynom) |
Make the table for a fast CRC.
|
int |
getOrder() |
|
boolean |
update(int data) |
Update the CRC value with a byte data.
|
CRC |
withCRC(int bitMask) |
public static final int CRC8
public static final int CRC16
public static final int CRC32
public static final int CCITT16
protected int[] crc_table
public CRC withCRC(int bitMask)
public boolean update(int data)
public int[] getGenTable(boolean isReflect,
int polynom)
isReflect - is Reflects the lower bits of the value providedpolynom - the generator polynom