final class Crc32
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private int |
crc
The current CRC.
|
private static int[] |
crc32Table
A static CRC lookup table.
|
| Constructor and Description |
|---|
Crc32() |
| Modifier and Type | Method and Description |
|---|---|
int |
getCRC() |
void |
updateCRC(int value)
Update the CRC with a single byte.
|
void |
updateCRC(int value,
int count)
Update the CRC with a sequence of identical bytes.
|
private static final int[] crc32Table
private int crc
public int getCRC()
public void updateCRC(int value)
value - The value to update the CRC withpublic void updateCRC(int value,
int count)
value - The value to update the CRC withcount - The number of bytes