Package com.jcraft.jzlib
Class CRC32
java.lang.Object
com.jcraft.jzlib.CRC32
- All Implemented Interfaces:
Checksum
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static longcombine(long crc1, long crc2, long len2) copy()static int[]longgetValue()(package private) static final voidgf2_matrix_square(long[] square, long[] mat) private static longgf2_matrix_times(long[] mat, long vec) voidreset()voidreset(long vv) voidupdate(byte[] buf, int index, int len)
-
Field Details
-
v
private int v -
crc_table
private static int[] crc_table -
GF2_DIM
private static final int GF2_DIM- See Also:
-
-
Constructor Details
-
CRC32
public CRC32()
-
-
Method Details
-
update
public void update(byte[] buf, int index, int len) -
reset
public void reset() -
reset
public void reset(long vv) -
getValue
public long getValue() -
combine
static long combine(long crc1, long crc2, long len2) -
gf2_matrix_times
private static long gf2_matrix_times(long[] mat, long vec) -
gf2_matrix_square
static final void gf2_matrix_square(long[] square, long[] mat) -
copy
-
getCRC32Table
public static int[] getCRC32Table()
-