Class XXH32State.Buffer

All Implemented Interfaces:
AutoCloseable, Iterable<XXH32State>, NativeResource, Pointer
Enclosing class:
XXH32State

public static class XXH32State.Buffer extends StructBuffer<XXH32State,XXH32State.Buffer> implements NativeResource
An array of XXH32State structs.
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new XXH32State.Buffer instance backed by the specified container.

      Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by XXH32State.SIZEOF, and its mark will be undefined.

      The created buffer instance holds a strong reference to the container object.

    • Buffer

      public Buffer(long address, int cap)
  • Method Details

    • total_len_32

      public int total_len_32()
      Returns:
      the value of the total_len_32 field.
    • large_len

      public int large_len()
      Returns:
      the value of the large_len field.
    • acc

      public IntBuffer acc()
      Returns:
      a IntBuffer view of the acc field.
    • acc

      public int acc(int index)
      Returns:
      the value at the specified index of the acc field.
    • buffer

      public ByteBuffer buffer()
      Returns:
      a ByteBuffer view of the buffer field.
    • buffer

      public byte buffer(int index)
      Returns:
      the value at the specified index of the buffer field.
    • bufferedSize

      public int bufferedSize()
      Returns:
      the value of the bufferedSize field.
    • reserved

      public int reserved()
      Returns:
      the value of the reserved field.