Package org.agrona.checksum
Class Crc32
java.lang.Object
org.agrona.checksum.Crc32
- All Implemented Interfaces:
Checksum
Implementation of the
Checksum
interface that computes CRC-32 checksum.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Crc32
Singleton instance to compute CRC-32 checksum.private static final MethodHandle
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
compute
(long address, int offset, int length) Computes a checksum based on the contents of ajava.nio.DirectByteBuffer
.
-
Field Details
-
INSTANCE
Singleton instance to compute CRC-32 checksum. -
UPDATE_BYTE_BUFFER
-
-
Constructor Details
-
Crc32
private Crc32()
-
-
Method Details
-
compute
public int compute(long address, int offset, int length) Computes a checksum based on the contents of ajava.nio.DirectByteBuffer
.
-