public class RpcCRC32Checksum extends CRC32
This avoids the basic Java CRC32's JNI overhead for certain uses of checksumming where many small pieces of data are checksummed in succession.
Constructor and Description |
---|
RpcCRC32Checksum()
Creates a new RpcCRC32Checksum object.
|
Modifier and Type | Method and Description |
---|---|
long |
getValue()
Returns CRC-32 value.
|
void |
reset()
Resets Rpc CRC-32 to initial value.
|
void |
update(byte[] b)
Updates the Rpc CRC-32 checksum with the specified array of bytes.
|
void |
update(byte[] b,
int off,
int len)
Updates the Rpc CRC-32 checksum with the specified array of bytes.
|
void |
update(int b)
Updates the Rpc CRC-32 checksum with the specified byte (the low
eight bits of the argument b).
|
public RpcCRC32Checksum()
public void update(int b)
public void update(byte[] b, int off, int len)
public void update(byte[] b)
public void reset()
Copyright © 2017 Perforce Software. All Rights Reserved.