final class Crc32C
extends java.lang.Object
implements java.util.zip.Checksum
Modifier and Type | Field and Description |
---|---|
private int |
crc
the current CRC value, bit-flipped
|
private static int |
MASK_DELTA |
(package private) static int[] |
T8_0 |
(package private) static int[] |
T8_1 |
(package private) static int[] |
T8_2 |
(package private) static int[] |
T8_3 |
(package private) static int[] |
T8_4 |
(package private) static int[] |
T8_5 |
(package private) static int[] |
T8_6 |
(package private) static int[] |
T8_7 |
Constructor and Description |
---|
Crc32C()
Create a new PureJavaCrc32 object.
|
Modifier and Type | Method and Description |
---|---|
int |
getIntValue() |
int |
getMaskedValue() |
long |
getValue() |
static int |
mask(int crc)
Return a masked representation of crc.
|
static int |
maskedCrc32c(byte[] data) |
static int |
maskedCrc32c(byte[] data,
int offset,
int length) |
void |
reset() |
static int |
unmask(int maskedCrc)
Return the crc whose masked representation is masked_crc.
|
void |
update(byte[] b,
int off,
int len) |
void |
update(int b) |
private static final int MASK_DELTA
private int crc
static final int[] T8_0
static final int[] T8_1
static final int[] T8_2
static final int[] T8_3
static final int[] T8_4
static final int[] T8_5
static final int[] T8_6
static final int[] T8_7
public static int maskedCrc32c(byte[] data)
public static int maskedCrc32c(byte[] data, int offset, int length)
public static int mask(int crc)
public static int unmask(int maskedCrc)
public int getMaskedValue()
public int getIntValue()
public long getValue()
getValue
in interface java.util.zip.Checksum
public void reset()
reset
in interface java.util.zip.Checksum
public void update(byte[] b, int off, int len)
update
in interface java.util.zip.Checksum
public void update(int b)
update
in interface java.util.zip.Checksum