public class CRC64
extends java.lang.Object
implements java.util.zip.Checksum
限定符和类型 | 方法和说明 |
---|---|
static CRC64 |
combine(CRC64 summ1,
CRC64 summ2,
long len2) |
static long |
combine(long crc1,
long crc2,
long len2) |
static CRC64 |
fromBytes(byte[] b)
Construct new CRC64 instance from byte array.
|
byte[] |
getBytes()
Get 8 byte representation of current CRC64 value.
|
long |
getValue()
Get long representation of current CRC64 value.
|
void |
reset()
Resets the checksum to its initial value.
|
void |
update(byte b)
Update CRC64 with new byte.
|
void |
update(byte[] b,
int len)
Update CRC64 with new byte block.
|
void |
update(byte[] b,
int off,
int len)
Updates the current checksum with the specified array of bytes.
|
void |
update(int b)
Updates the current checksum with the specified byte.
|
public static CRC64 fromBytes(byte[] b)
public byte[] getBytes()
public long getValue()
getValue
在接口中 java.util.zip.Checksum
public void update(byte[] b, int len)
public void update(byte b)
public void update(int b)
java.util.zip.Checksum
update
在接口中 java.util.zip.Checksum
b
- the byte to update the checksum withpublic void update(byte[] b, int off, int len)
java.util.zip.Checksum
update
在接口中 java.util.zip.Checksum
b
- the byte array to update the checksum withoff
- the start offset of the datalen
- the number of bytes to use for the updatepublic void reset()
java.util.zip.Checksum
reset
在接口中 java.util.zip.Checksum
public static long combine(long crc1, long crc2, long len2)