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 Type
    Method
    Description
    int
    compute(long address, int offset, int length)
    Computes a checksum based on the contents of a DirectByteBuffer.
  • Method Details

    • compute

      int compute(long address, int offset, int length)
      Computes a checksum based on the contents of a DirectByteBuffer.
      Parameters:
      address - of the buffer.
      offset - within the buffer to begin at.
      length - of the data to read.
      Returns:
      computed checksum value.