| 限定符和类型 | 方法和说明 |
|---|---|
static CRC64 |
combine(CRC64 sum1,
CRC64 sum2,
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() |
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) |
void |
update(int b) |
public static CRC64 fromBytes(byte[] b)
b - the buffer into which the data is read.CRC64 instance.public byte[] getBytes()
public long getValue()
public void update(byte[] b,
int len)
b - the buffer into which the data is read.len - the maximum number of bytes to read.public void update(byte b)
b - the byte.public static long combine(long crc1,
long crc2,
long len2)
Copyright © 2024. All rights reserved.