Package io.aeron.archive.checksum
Interface Checksum
public interface Checksum
An interface representing API to compute a data checksum.
Note: Instances should be threadsafe and stateless.
-
Method Summary
Modifier and TypeMethodDescriptionintcompute(long address, int offset, int length) Computes a checksum based on the contents of aDirectByteBuffer.
-
Method Details
-
compute
int compute(long address, int offset, int length) Computes a checksum based on the contents of aDirectByteBuffer.- Parameters:
address- of the buffer.offset- within the buffer to begin at.length- of the data to read.- Returns:
- computed checksum value.
-