Package org.agrona.checksum
Interface Checksum
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
An interface representing API to compute a data checksum.
Note: Instances should be threadsafe and stateless.
-
Method Summary
Modifier and TypeMethodDescriptionint
compute
(long address, int offset, int length) Computes a checksum based on the contents of ajava.nio.DirectByteBuffer
.
-
Method Details
-
compute
int compute(long address, int offset, int length) Computes a checksum based on the contents of ajava.nio.DirectByteBuffer
.- Parameters:
address
- of the buffer.offset
- within the buffer to begin at.length
- of the data to read.- Returns:
- computed checksum value.
-