Class CRC32
java.lang.Object
net.sf.jazzlib.CRC32
- All Implemented Interfaces:
Checksum
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetValue()Returns the CRC32 data checksum computed so far.private static int[]Make the table for a fast CRC.voidreset()Resets the CRC32 data checksum as if no update was ever called.voidupdate(byte[] buf) Adds the complete byte array to the data checksum.voidupdate(byte[] buf, int off, int len) Adds the byte array to the data checksum.voidupdate(int bval) Updates the checksum with the int bval.
-
Field Details
-
crc
private int crcThe crc data checksum so far. -
crc_table
private static int[] crc_tableThe fast CRC table. Computed once when the CRC32 class is loaded.
-
-
Constructor Details
-
CRC32
public CRC32()
-
-
Method Details
-
make_crc_table
private static int[] make_crc_table()Make the table for a fast CRC. -
getValue
-
reset
-
update
-
update
-
update
public void update(byte[] buf) Adds the complete byte array to the data checksum.
-