Class XXH64State

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer


    public class XXH64State
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    64-bit XXH state for stack allocation. Unstable API.

    Layout

     struct XXH64_state_t {
         long long total_len;
         long long v1;
         long long v2;
         long long v3;
         long long v4;
         long long mem64[4];
         unsigned memsize;
         unsigned reserved[2];
     }
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class and Description
      static class  XXH64State.Buffer
      An array of XXH64State structs.
      • Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer

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

      Fields 
      Modifier and Type Field and Description
      static int SIZEOF
      The struct size in bytes.
      • Fields inherited from interface org.lwjgl.system.Pointer

        POINTER_SHIFT, POINTER_SIZE
    • Constructor Summary

      Constructors 
      Constructor and Description
      XXH64State(java.nio.ByteBuffer container)
      Creates a XXH64State instance at the current position of the specified ByteBuffer container.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      static XXH64State calloc()
      Returns a new XXH64State instance allocated with memCalloc.
      static XXH64State.Buffer calloc(int capacity)
      Returns a new XXH64State.Buffer instance allocated with memCalloc.
      static XXH64State callocStack()
      Returns a new XXH64State instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      static XXH64State.Buffer callocStack(int capacity)
      Returns a new XXH64State.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      static XXH64State.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new XXH64State.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      static XXH64State callocStack(org.lwjgl.system.MemoryStack stack)
      Returns a new XXH64State instance allocated on the specified MemoryStack and initializes all its bits to zero.
      static XXH64State create()
      Returns a new XXH64State instance allocated with BufferUtils.
      static XXH64State.Buffer create(int capacity)
      Returns a new XXH64State.Buffer instance allocated with BufferUtils.
      static XXH64State create(long address)
      Returns a new XXH64State instance for the specified memory address or null if the address is NULL.
      static XXH64State.Buffer create(long address, int capacity)
      Create a XXH64State.Buffer instance at the specified memory.
      static XXH64State malloc()
      Returns a new XXH64State instance allocated with memAlloc.
      static XXH64State.Buffer malloc(int capacity)
      Returns a new XXH64State.Buffer instance allocated with memAlloc.
      static XXH64State mallocStack()
      Returns a new XXH64State instance allocated on the thread-local MemoryStack.
      static XXH64State.Buffer mallocStack(int capacity)
      Returns a new XXH64State.Buffer instance allocated on the thread-local MemoryStack.
      static XXH64State.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new XXH64State.Buffer instance allocated on the specified MemoryStack.
      static XXH64State mallocStack(org.lwjgl.system.MemoryStack stack)
      Returns a new XXH64State instance allocated on the specified MemoryStack.
      java.nio.LongBuffer mem64()
      Returns a LongBuffer view of the mem64 field.
      long mem64(int index)
      Returns the value at the specified index of the mem64 field.
      XXH64State mem64(int index, long value)
      Sets the specified value at the specified index of the mem64 field.
      XXH64State mem64(java.nio.LongBuffer value)
      Copies the specified LongBuffer to the mem64 field.
      int memsize()
      Returns the value of the memsize field.
      XXH64State memsize(int value)
      Sets the specified value to the memsize field.
      java.nio.IntBuffer reserved()
      Returns a IntBuffer view of the reserved field.
      int reserved(int index)
      Returns the value at the specified index of the reserved field.
      XXH64State reserved(java.nio.IntBuffer value)
      Copies the specified IntBuffer to the reserved field.
      XXH64State reserved(int index, int value)
      Sets the specified value at the specified index of the reserved field.
      XXH64State set(long total_len, long v1, long v2, long v3, long v4, java.nio.LongBuffer mem64, int memsize, java.nio.IntBuffer reserved)
      Initializes this struct with the specified values.
      XXH64State set(XXH64State src)
      Copies the specified struct data to this struct.
      int sizeof()
      Returns sizeof(struct).
      long total_len()
      Returns the value of the total_len field.
      XXH64State total_len(long value)
      Sets the specified value to the total_len field.
      long v1()
      Returns the value of the v1 field.
      XXH64State v1(long value)
      Sets the specified value to the v1 field.
      long v2()
      Returns the value of the v2 field.
      XXH64State v2(long value)
      Sets the specified value to the v2 field.
      long v3()
      Returns the value of the v3 field.
      XXH64State v3(long value)
      Sets the specified value to the v3 field.
      long v4()
      Returns the value of the v4 field.
      XXH64State v4(long value)
      Sets the specified value to the v4 field.
      • Methods inherited from class org.lwjgl.system.Struct

        clear, free
      • Methods inherited from class org.lwjgl.system.Pointer.Default

        address, equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.lwjgl.system.NativeResource

        close, free
    • Field Detail

      • SIZEOF

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

      • XXH64State

        public XXH64State(java.nio.ByteBuffer container)
        Creates a XXH64State 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 Detail

      • sizeof

        public int sizeof()
        Description copied from class: org.lwjgl.system.Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • total_len

        public long total_len()
        Returns the value of the total_len field.
      • v1

        public long v1()
        Returns the value of the v1 field.
      • v2

        public long v2()
        Returns the value of the v2 field.
      • v3

        public long v3()
        Returns the value of the v3 field.
      • v4

        public long v4()
        Returns the value of the v4 field.
      • mem64

        public java.nio.LongBuffer mem64()
        Returns a LongBuffer view of the mem64 field.
      • mem64

        public long mem64(int index)
        Returns the value at the specified index of the mem64 field.
      • memsize

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

        public java.nio.IntBuffer reserved()
        Returns a IntBuffer view of the reserved field.
      • reserved

        public int reserved(int index)
        Returns the value at the specified index of the reserved field.
      • total_len

        public XXH64State total_len(long value)
        Sets the specified value to the total_len field.
      • v1

        public XXH64State v1(long value)
        Sets the specified value to the v1 field.
      • v2

        public XXH64State v2(long value)
        Sets the specified value to the v2 field.
      • v3

        public XXH64State v3(long value)
        Sets the specified value to the v3 field.
      • v4

        public XXH64State v4(long value)
        Sets the specified value to the v4 field.
      • mem64

        public XXH64State mem64(java.nio.LongBuffer value)
        Copies the specified LongBuffer to the mem64 field.
      • mem64

        public XXH64State mem64(int index,
                                long value)
        Sets the specified value at the specified index of the mem64 field.
      • memsize

        public XXH64State memsize(int value)
        Sets the specified value to the memsize field.
      • reserved

        public XXH64State reserved(java.nio.IntBuffer value)
        Copies the specified IntBuffer to the reserved field.
      • reserved

        public XXH64State reserved(int index,
                                   int value)
        Sets the specified value at the specified index of the reserved field.
      • set

        public XXH64State set(long total_len,
                              long v1,
                              long v2,
                              long v3,
                              long v4,
                              java.nio.LongBuffer mem64,
                              int memsize,
                              java.nio.IntBuffer reserved)
        Initializes this struct with the specified values.
      • set

        public XXH64State set(XXH64State src)
        Copies the specified struct data to this struct.
        Parameters:
        src - the source struct
        Returns:
        this struct
      • malloc

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

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

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

        public static XXH64State create(long address)
        Returns a new XXH64State instance for the specified memory address or null if the address is NULL.
      • malloc

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

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

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

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

        public static XXH64State mallocStack()
        Returns a new XXH64State instance allocated on the thread-local MemoryStack.
      • callocStack

        public static XXH64State callocStack()
        Returns a new XXH64State instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      • mallocStack

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

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

        public static XXH64State.Buffer mallocStack(int capacity)
        Returns a new XXH64State.Buffer instance allocated on the thread-local MemoryStack.
        Parameters:
        capacity - the buffer capacity
      • callocStack

        public static XXH64State.Buffer callocStack(int capacity)
        Returns a new XXH64State.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
        Parameters:
        capacity - the buffer capacity
      • mallocStack

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

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