Class XXH32State

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XXH32State>
org.lwjgl.util.xxhash.XXH32State
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

@NativeType("struct XXH32_state_t") public class XXH32State extends org.lwjgl.system.Struct<XXH32State> implements org.lwjgl.system.NativeResource
struct XXH32_state_t {
    XXH32_hash_t total_len_32;
    XXH32_hash_t large_len;
    XXH32_hash_t acc[4];
    unsigned char buffer[16];
    XXH32_hash_t bufferedSize;
    XXH32_hash_t reserved;
}
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    An array of XXH32State structs.

    Nested classes/interfaces inherited from class org.lwjgl.system.Struct

    org.lwjgl.system.Struct.StructValidation

    Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer

    org.lwjgl.system.Pointer.Default
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The struct member offsets.
    static final int
    The struct alignment in bytes.
    static final int
    The struct member offsets.
    static final int
    The struct member offsets.
    static final int
    The struct member offsets.
    static final int
    The struct member offsets.
    static final int
    The struct size in bytes.
    static final int
    The struct member offsets.

    Fields inherited from interface org.lwjgl.system.Pointer

    BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a XXH32State instance at the current position of the specified ByteBuffer container.
  • Method Summary

    Modifier and Type
    Method
    Description
    acc()
     
    int
    acc(int index)
     
     
    byte
    buffer(int index)
     
    int
     
    static XXH32State
    Returns a new XXH32State instance allocated with memCalloc.
    calloc(int capacity)
    Returns a new XXH32State.Buffer instance allocated with memCalloc.
    calloc(int capacity, org.lwjgl.system.MemoryStack stack)
    Returns a new XXH32State.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
    static XXH32State
    calloc(org.lwjgl.system.MemoryStack stack)
    Returns a new XXH32State instance allocated on the specified MemoryStack and initializes all its bits to zero.
    static XXH32State
    Returns a new XXH32State instance allocated with BufferUtils.
    create(int capacity)
    Returns a new XXH32State.Buffer instance allocated with BufferUtils.
    static XXH32State
    create(long address)
    Returns a new XXH32State instance for the specified memory address.
    create(long address, int capacity)
    Create a XXH32State.Buffer instance at the specified memory.
    static @Nullable XXH32State
    createSafe(long address)
    Like create, but returns null if address is NULL.
    static @Nullable XXH32State.Buffer
    createSafe(long address, int capacity)
    Like create, but returns null if address is NULL.
    int
     
    static XXH32State
    Returns a new XXH32State instance allocated with memAlloc.
    malloc(int capacity)
    Returns a new XXH32State.Buffer instance allocated with memAlloc.
    malloc(int capacity, org.lwjgl.system.MemoryStack stack)
    Returns a new XXH32State.Buffer instance allocated on the specified MemoryStack.
    static XXH32State
    malloc(org.lwjgl.system.MemoryStack stack)
    Returns a new XXH32State instance allocated on the specified MemoryStack.
    static IntBuffer
    nacc(long struct)
    Unsafe version of acc().
    static int
    nacc(long struct, int index)
    Unsafe version of acc.
    static ByteBuffer
    nbuffer(long struct)
    Unsafe version of buffer().
    static byte
    nbuffer(long struct, int index)
    Unsafe version of buffer.
    static int
    nbufferedSize(long struct)
    Unsafe version of bufferedSize().
    static int
    nlarge_len(long struct)
    Unsafe version of large_len().
    static int
    nreserved(long struct)
    Unsafe version of reserved().
    static int
    ntotal_len_32(long struct)
    Unsafe version of total_len_32().
    int
     
    int
     
    int
     

    Methods inherited from class org.lwjgl.system.Struct

    clear, free, isNull, validate, validate

    Methods inherited from class org.lwjgl.system.Pointer.Default

    address, equals, hashCode, toString

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.lwjgl.system.NativeResource

    close, free
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • TOTAL_LEN_32

      public static final int TOTAL_LEN_32
      The struct member offsets.
    • LARGE_LEN

      public static final int LARGE_LEN
      The struct member offsets.
    • ACC

      public static final int ACC
      The struct member offsets.
    • BUFFER

      public static final int BUFFER
      The struct member offsets.
    • BUFFEREDSIZE

      public static final int BUFFEREDSIZE
      The struct member offsets.
    • RESERVED

      public static final int RESERVED
      The struct member offsets.
  • Constructor Details

    • XXH32State

      public XXH32State(ByteBuffer container)
      Creates a XXH32State instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

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

  • Method Details

    • sizeof

      public int sizeof()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<XXH32State>
    • total_len_32

      @NativeType("XXH32_hash_t") public int total_len_32()
      Returns:
      the value of the total_len_32 field.
    • large_len

      @NativeType("XXH32_hash_t") public int large_len()
      Returns:
      the value of the large_len field.
    • acc

      @NativeType("XXH32_hash_t[4]") public IntBuffer acc()
      Returns:
      a IntBuffer view of the acc field.
    • acc

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

      @NativeType("unsigned char[16]") public ByteBuffer buffer()
      Returns:
      a ByteBuffer view of the buffer field.
    • buffer

      @NativeType("unsigned char") public byte buffer(int index)
      Returns:
      the value at the specified index of the buffer field.
    • bufferedSize

      @NativeType("XXH32_hash_t") public int bufferedSize()
      Returns:
      the value of the bufferedSize field.
    • reserved

      @NativeType("XXH32_hash_t") public int reserved()
      Returns:
      the value of the reserved field.
    • malloc

      public static XXH32State malloc()
      Returns a new XXH32State instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static XXH32State calloc()
      Returns a new XXH32State instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static XXH32State create()
      Returns a new XXH32State instance allocated with BufferUtils.
    • create

      public static XXH32State create(long address)
      Returns a new XXH32State instance for the specified memory address.
    • createSafe

      public static @Nullable XXH32State createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static XXH32State.Buffer malloc(int capacity)
      Returns a new XXH32State.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static XXH32State.Buffer calloc(int capacity)
      Returns a new XXH32State.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static XXH32State.Buffer create(int capacity)
      Returns a new XXH32State.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static XXH32State.Buffer create(long address, int capacity)
      Create a XXH32State.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable XXH32State.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static XXH32State malloc(org.lwjgl.system.MemoryStack stack)
      Returns a new XXH32State instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static XXH32State calloc(org.lwjgl.system.MemoryStack stack)
      Returns a new XXH32State instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static XXH32State.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new XXH32State.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static XXH32State.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new XXH32State.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • ntotal_len_32

      public static int ntotal_len_32(long struct)
      Unsafe version of total_len_32().
    • nlarge_len

      public static int nlarge_len(long struct)
      Unsafe version of large_len().
    • nacc

      public static IntBuffer nacc(long struct)
      Unsafe version of acc().
    • nacc

      public static int nacc(long struct, int index)
      Unsafe version of acc.
    • nbuffer

      public static ByteBuffer nbuffer(long struct)
      Unsafe version of buffer().
    • nbuffer

      public static byte nbuffer(long struct, int index)
      Unsafe version of buffer.
    • nbufferedSize

      public static int nbufferedSize(long struct)
      Unsafe version of bufferedSize().
    • nreserved

      public static int nreserved(long struct)
      Unsafe version of reserved().