final class PureJavaCrc32C
extends java.lang.Object
implements java.util.zip.Checksum
This file is a copy of the implementation at the Apache Hadoop project.
Modifier and Type | Field and Description |
---|---|
private int |
crc
the current CRC value, bit-flipped
|
private static int[] |
T |
private static int |
T8_0_START |
private static int |
T8_1_START |
private static int |
T8_2_START |
private static int |
T8_3_START |
private static int |
T8_4_START |
private static int |
T8_5_START |
private static int |
T8_6_START |
private static int |
T8_7_START |
Constructor and Description |
---|
PureJavaCrc32C()
Create a new PureJavaCrc32 object.
|
Modifier and Type | Method and Description |
---|---|
long |
getValue() |
void |
reset() |
void |
update(byte[] b,
int off,
int len) |
void |
update(int b) |
private int crc
private static final int T8_0_START
private static final int T8_1_START
private static final int T8_2_START
private static final int T8_3_START
private static final int T8_4_START
private static final int T8_5_START
private static final int T8_6_START
private static final int T8_7_START
private static final int[] T
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 final void update(int b)
update
in interface java.util.zip.Checksum