Class IOURingSQ

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

    public class IOURingSQ
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource

    Layout

    
     struct io_uring_sq {
         unsigned * khead;
         unsigned * ktail;
         unsigned * kring_mask;
         unsigned * kring_entries;
         unsigned * kflags;
         unsigned * kdropped;
         unsigned * array;
         struct io_uring_sqe * sqes;
         unsigned sqe_head;
         unsigned sqe_tail;
         size_t ring_sz;
         void * ring_ptr;
         unsigned pad[4];
     }
    • Nested Class Summary

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

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

        org.lwjgl.system.Struct.StructValidation
    • Constructor Summary

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

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.nio.IntBuffer array​(int capacity)  
      IOURingSQ array​(java.nio.IntBuffer value)
      Sets the address of the specified IntBuffer to the array field.
      static IOURingSQ calloc()
      Returns a new IOURingSQ instance allocated with memCalloc.
      static IOURingSQ.Buffer calloc​(int capacity)
      Returns a new IOURingSQ.Buffer instance allocated with memCalloc.
      static IOURingSQ.Buffer calloc​(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new IOURingSQ.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      static IOURingSQ calloc​(org.lwjgl.system.MemoryStack stack)
      Returns a new IOURingSQ instance allocated on the specified MemoryStack and initializes all its bits to zero.
      static IOURingSQ create()
      Returns a new IOURingSQ instance allocated with BufferUtils.
      static IOURingSQ.Buffer create​(int capacity)
      Returns a new IOURingSQ.Buffer instance allocated with BufferUtils.
      static IOURingSQ create​(long address)
      Returns a new IOURingSQ instance for the specified memory address.
      static IOURingSQ.Buffer create​(long address, int capacity)
      Create a IOURingSQ.Buffer instance at the specified memory.
      static IOURingSQ createSafe​(long address)
      Like create, but returns null if address is NULL.
      static IOURingSQ.Buffer createSafe​(long address, int capacity)
      Like create, but returns null if address is NULL.
      java.nio.IntBuffer kdropped​(int capacity)  
      IOURingSQ kdropped​(java.nio.IntBuffer value)
      Sets the address of the specified IntBuffer to the kdropped field.
      java.nio.IntBuffer kflags​(int capacity)  
      IOURingSQ kflags​(java.nio.IntBuffer value)
      Sets the address of the specified IntBuffer to the kflags field.
      java.nio.IntBuffer khead​(int capacity)  
      IOURingSQ khead​(java.nio.IntBuffer value)
      Sets the address of the specified IntBuffer to the khead field.
      java.nio.IntBuffer kring_entries​(int capacity)  
      IOURingSQ kring_entries​(java.nio.IntBuffer value)
      Sets the address of the specified IntBuffer to the kring_entries field.
      java.nio.IntBuffer kring_mask​(int capacity)  
      IOURingSQ kring_mask​(java.nio.IntBuffer value)
      Sets the address of the specified IntBuffer to the kring_mask field.
      java.nio.IntBuffer ktail​(int capacity)  
      IOURingSQ ktail​(java.nio.IntBuffer value)
      Sets the address of the specified IntBuffer to the ktail field.
      static IOURingSQ malloc()
      Returns a new IOURingSQ instance allocated with memAlloc.
      static IOURingSQ.Buffer malloc​(int capacity)
      Returns a new IOURingSQ.Buffer instance allocated with memAlloc.
      static IOURingSQ.Buffer malloc​(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new IOURingSQ.Buffer instance allocated on the specified MemoryStack.
      static IOURingSQ malloc​(org.lwjgl.system.MemoryStack stack)
      Returns a new IOURingSQ instance allocated on the specified MemoryStack.
      static java.nio.IntBuffer narray​(long struct, int capacity)
      Unsafe version of array.
      static void narray​(long struct, java.nio.IntBuffer value)
      Unsafe version of array.
      static java.nio.IntBuffer nkdropped​(long struct, int capacity)
      Unsafe version of kdropped.
      static void nkdropped​(long struct, java.nio.IntBuffer value)
      Unsafe version of kdropped.
      static java.nio.IntBuffer nkflags​(long struct, int capacity)
      Unsafe version of kflags.
      static void nkflags​(long struct, java.nio.IntBuffer value)
      Unsafe version of kflags.
      static java.nio.IntBuffer nkhead​(long struct, int capacity)
      Unsafe version of khead.
      static void nkhead​(long struct, java.nio.IntBuffer value)
      Unsafe version of khead.
      static java.nio.IntBuffer nkring_entries​(long struct, int capacity)
      Unsafe version of kring_entries.
      static void nkring_entries​(long struct, java.nio.IntBuffer value)
      Unsafe version of kring_entries.
      static java.nio.IntBuffer nkring_mask​(long struct, int capacity)
      Unsafe version of kring_mask.
      static void nkring_mask​(long struct, java.nio.IntBuffer value)
      Unsafe version of kring_mask.
      static java.nio.IntBuffer nktail​(long struct, int capacity)
      Unsafe version of ktail.
      static void nktail​(long struct, java.nio.IntBuffer value)
      Unsafe version of ktail.
      static java.nio.IntBuffer npad​(long struct)  
      static int npad​(long struct, int index)  
      static void npad​(long struct, int index, int value)  
      static void npad​(long struct, java.nio.IntBuffer value)  
      static java.nio.ByteBuffer nring_ptr​(long struct)
      Unsafe version of ring_ptr.
      static void nring_ptr​(long struct, java.nio.ByteBuffer value)
      Unsafe version of ring_ptr.
      static long nring_sz​(long struct)
      Unsafe version of ring_sz().
      static void nring_sz​(long struct, long value)
      Sets the specified value to the ring_sz field of the specified struct.
      static int nsqe_head​(long struct)
      Unsafe version of sqe_head().
      static void nsqe_head​(long struct, int value)
      Unsafe version of sqe_head.
      static int nsqe_tail​(long struct)
      Unsafe version of sqe_tail().
      static void nsqe_tail​(long struct, int value)
      Unsafe version of sqe_tail.
      static IOURingSQE nsqes​(long struct)
      Unsafe version of sqes().
      static void nsqes​(long struct, IOURingSQE value)
      Unsafe version of sqes.
      java.nio.ByteBuffer ring_ptr()  
      IOURingSQ ring_ptr​(java.nio.ByteBuffer value)
      Sets the address of the specified ByteBuffer to the ring_ptr field.
      long ring_sz()  
      IOURingSQ set​(java.nio.IntBuffer khead, java.nio.IntBuffer ktail, java.nio.IntBuffer kring_mask, java.nio.IntBuffer kring_entries, java.nio.IntBuffer kflags, java.nio.IntBuffer kdropped, java.nio.IntBuffer array, IOURingSQE sqes, int sqe_head, int sqe_tail, java.nio.ByteBuffer ring_ptr)
      Initializes this struct with the specified values.
      IOURingSQ set​(IOURingSQ src)
      Copies the specified struct data to this struct.
      int sizeof()  
      int sqe_head()  
      IOURingSQ sqe_head​(int value)
      Sets the specified value to the sqe_head field.
      int sqe_tail()  
      IOURingSQ sqe_tail​(int value)
      Sets the specified value to the sqe_tail field.
      IOURingSQE sqes()  
      IOURingSQ sqes​(IOURingSQE value)
      Sets the address of the specified IOURingSQE to the sqes field.
      static void validate​(long struct)
      Validates pointer members that should not be NULL.
      • Methods inherited from interface org.lwjgl.system.NativeResource

        close, free
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from class org.lwjgl.system.Pointer.Default

        address, equals, hashCode, toString
      • Methods inherited from class org.lwjgl.system.Struct

        clear, free, isNull, validate
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • KHEAD, KTAIL, KRING_MASK, KRING_ENTRIES, KFLAGS, KDROPPED, ARRAY, SQES, SQE_HEAD, SQE_TAIL, RING_SZ, RING_PTR, PAD

        The struct member offsets.
    • Constructor Detail

      • IOURingSQ

        public IOURingSQ​(java.nio.ByteBuffer container)
        Creates a IOURingSQ 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()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • khead

        public java.nio.IntBuffer khead​(int capacity)
        Parameters:
        capacity - the number of elements in the returned buffer
        Returns:
        a IntBuffer view of the data pointed to by the khead field.
      • ktail

        public java.nio.IntBuffer ktail​(int capacity)
        Parameters:
        capacity - the number of elements in the returned buffer
        Returns:
        a IntBuffer view of the data pointed to by the ktail field.
      • kring_mask

        public java.nio.IntBuffer kring_mask​(int capacity)
        Parameters:
        capacity - the number of elements in the returned buffer
        Returns:
        a IntBuffer view of the data pointed to by the kring_mask field.
      • kring_entries

        public java.nio.IntBuffer kring_entries​(int capacity)
        Parameters:
        capacity - the number of elements in the returned buffer
        Returns:
        a IntBuffer view of the data pointed to by the kring_entries field.
      • kflags

        public java.nio.IntBuffer kflags​(int capacity)
        Parameters:
        capacity - the number of elements in the returned buffer
        Returns:
        a IntBuffer view of the data pointed to by the kflags field.
      • kdropped

        public java.nio.IntBuffer kdropped​(int capacity)
        Parameters:
        capacity - the number of elements in the returned buffer
        Returns:
        a IntBuffer view of the data pointed to by the kdropped field.
      • array

        public java.nio.IntBuffer array​(int capacity)
        Parameters:
        capacity - the number of elements in the returned buffer
        Returns:
        a IntBuffer view of the data pointed to by the array field.
      • sqes

        public IOURingSQE sqes()
        Returns:
        a IOURingSQE view of the struct pointed to by the sqes field.
      • sqe_head

        public int sqe_head()
        Returns:
        the value of the sqe_head field.
      • sqe_tail

        public int sqe_tail()
        Returns:
        the value of the sqe_tail field.
      • ring_sz

        public long ring_sz()
        Returns:
        the value of the ring_sz field.
      • ring_ptr

        public java.nio.ByteBuffer ring_ptr()
        Returns:
        a ByteBuffer view of the data pointed to by the ring_ptr field.
      • khead

        public IOURingSQ khead​(java.nio.IntBuffer value)
        Sets the address of the specified IntBuffer to the khead field.
      • ktail

        public IOURingSQ ktail​(java.nio.IntBuffer value)
        Sets the address of the specified IntBuffer to the ktail field.
      • kring_mask

        public IOURingSQ kring_mask​(java.nio.IntBuffer value)
        Sets the address of the specified IntBuffer to the kring_mask field.
      • kring_entries

        public IOURingSQ kring_entries​(java.nio.IntBuffer value)
        Sets the address of the specified IntBuffer to the kring_entries field.
      • kflags

        public IOURingSQ kflags​(java.nio.IntBuffer value)
        Sets the address of the specified IntBuffer to the kflags field.
      • kdropped

        public IOURingSQ kdropped​(java.nio.IntBuffer value)
        Sets the address of the specified IntBuffer to the kdropped field.
      • array

        public IOURingSQ array​(java.nio.IntBuffer value)
        Sets the address of the specified IntBuffer to the array field.
      • sqe_head

        public IOURingSQ sqe_head​(int value)
        Sets the specified value to the sqe_head field.
      • sqe_tail

        public IOURingSQ sqe_tail​(int value)
        Sets the specified value to the sqe_tail field.
      • ring_ptr

        public IOURingSQ ring_ptr​(java.nio.ByteBuffer value)
        Sets the address of the specified ByteBuffer to the ring_ptr field.
      • set

        public IOURingSQ set​(java.nio.IntBuffer khead,
                             java.nio.IntBuffer ktail,
                             java.nio.IntBuffer kring_mask,
                             java.nio.IntBuffer kring_entries,
                             java.nio.IntBuffer kflags,
                             java.nio.IntBuffer kdropped,
                             java.nio.IntBuffer array,
                             IOURingSQE sqes,
                             int sqe_head,
                             int sqe_tail,
                             java.nio.ByteBuffer ring_ptr)
        Initializes this struct with the specified values.
      • set

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public static IOURingSQ.Buffer calloc​(int capacity,
                                              org.lwjgl.system.MemoryStack stack)
        Returns a new IOURingSQ.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
      • nkhead

        public static java.nio.IntBuffer nkhead​(long struct,
                                                int capacity)
        Unsafe version of khead.
      • nktail

        public static java.nio.IntBuffer nktail​(long struct,
                                                int capacity)
        Unsafe version of ktail.
      • nkring_mask

        public static java.nio.IntBuffer nkring_mask​(long struct,
                                                     int capacity)
        Unsafe version of kring_mask.
      • nkring_entries

        public static java.nio.IntBuffer nkring_entries​(long struct,
                                                        int capacity)
        Unsafe version of kring_entries.
      • nkflags

        public static java.nio.IntBuffer nkflags​(long struct,
                                                 int capacity)
        Unsafe version of kflags.
      • nkdropped

        public static java.nio.IntBuffer nkdropped​(long struct,
                                                   int capacity)
        Unsafe version of kdropped.
      • narray

        public static java.nio.IntBuffer narray​(long struct,
                                                int capacity)
        Unsafe version of array.
      • nsqes

        public static IOURingSQE nsqes​(long struct)
        Unsafe version of sqes().
      • nsqe_head

        public static int nsqe_head​(long struct)
        Unsafe version of sqe_head().
      • nsqe_tail

        public static int nsqe_tail​(long struct)
        Unsafe version of sqe_tail().
      • nring_sz

        public static long nring_sz​(long struct)
        Unsafe version of ring_sz().
      • nring_ptr

        public static java.nio.ByteBuffer nring_ptr​(long struct)
        Unsafe version of ring_ptr.
      • npad

        public static java.nio.IntBuffer npad​(long struct)
      • npad

        public static int npad​(long struct,
                               int index)
      • nkhead

        public static void nkhead​(long struct,
                                  java.nio.IntBuffer value)
        Unsafe version of khead.
      • nktail

        public static void nktail​(long struct,
                                  java.nio.IntBuffer value)
        Unsafe version of ktail.
      • nkring_mask

        public static void nkring_mask​(long struct,
                                       java.nio.IntBuffer value)
        Unsafe version of kring_mask.
      • nkring_entries

        public static void nkring_entries​(long struct,
                                          java.nio.IntBuffer value)
        Unsafe version of kring_entries.
      • nkflags

        public static void nkflags​(long struct,
                                   java.nio.IntBuffer value)
        Unsafe version of kflags.
      • nkdropped

        public static void nkdropped​(long struct,
                                     java.nio.IntBuffer value)
        Unsafe version of kdropped.
      • narray

        public static void narray​(long struct,
                                  java.nio.IntBuffer value)
        Unsafe version of array.
      • nsqes

        public static void nsqes​(long struct,
                                 IOURingSQE value)
        Unsafe version of sqes.
      • nsqe_head

        public static void nsqe_head​(long struct,
                                     int value)
        Unsafe version of sqe_head.
      • nsqe_tail

        public static void nsqe_tail​(long struct,
                                     int value)
        Unsafe version of sqe_tail.
      • nring_sz

        public static void nring_sz​(long struct,
                                    long value)
        Sets the specified value to the ring_sz field of the specified struct.
      • nring_ptr

        public static void nring_ptr​(long struct,
                                     java.nio.ByteBuffer value)
        Unsafe version of ring_ptr.
      • npad

        public static void npad​(long struct,
                                java.nio.IntBuffer value)
      • npad

        public static void npad​(long struct,
                                int index,
                                int value)
      • validate

        public static void validate​(long struct)
        Validates pointer members that should not be NULL.
        Parameters:
        struct - the struct to validate