public class Crc32CChecksum extends Object implements SdkChecksum
SdkChecksum to calculate an CRC32C checksum.| Constructor and Description |
|---|
Crc32CChecksum()
Creates CRT Based Crc32C checksum if Crt classpath for Crc32c is loaded, else create Sdk Implemented Crc32c
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getChecksumBytes()
Returns the computed checksum in a byte array rather than the long provided by
Checksum.getValue(). |
long |
getValue() |
void |
mark(int readLimit)
Allows marking a checksum for checksums that support the ability to mark and reset.
|
void |
reset() |
void |
update(byte[] b,
int off,
int len) |
void |
update(int b) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitupdate, updatepublic Crc32CChecksum()
public byte[] getChecksumBytes()
SdkChecksumChecksum.getValue().getChecksumBytes in interface SdkChecksumpublic void mark(int readLimit)
SdkChecksummark in interface SdkChecksumreadLimit - the maximum limit of bytes that can be read before the mark position becomes invalid.Copyright © 2023. All rights reserved.