class Crc32c
extends java.lang.Object
implements java.util.zip.Checksum
| Modifier and Type | Field and Description |
|---|---|
private static int |
BYTE_MASK |
private int |
crc |
private static int[] |
CRC_TABLE |
private static long |
LONG_MASK |
| Constructor and Description |
|---|
Crc32c() |
| Modifier and Type | Method and Description |
|---|---|
private static int |
crc32c(int crc,
int b) |
long |
getValue() |
void |
reset() |
void |
update(byte[] buffer,
int offset,
int length) |
void |
update(int b) |
private static final int[] CRC_TABLE
private static final long LONG_MASK
private static final int BYTE_MASK
private int crc
public void update(int b)
update in interface java.util.zip.Checksumpublic void update(byte[] buffer,
int offset,
int length)
update in interface java.util.zip.Checksumpublic long getValue()
getValue in interface java.util.zip.Checksumpublic void reset()
reset in interface java.util.zip.Checksumprivate static int crc32c(int crc,
int b)