public final class FastCrc extends Object
PureJavaCrc32| Constructor and Description |
|---|
FastCrc() |
| Modifier and Type | Method and Description |
|---|---|
static int |
calcCrc(ByteBuffer buf,
int len) |
static int |
calcCrc(File file) |
int |
getValue() |
void |
reset()
Preparation for further calculations.
|
void |
update(ByteBuffer buf,
int len) |
public void reset()
public int getValue()
public void update(ByteBuffer buf, int len)
buf - Input buffer.len - Data length.public static int calcCrc(ByteBuffer buf, int len)
buf - Input buffer.len - Data length.public static int calcCrc(File file) throws IOException
file - A file to calculate checksum over it.IOException - If fails.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.1 Release Date : December 9 2020