Class IOCQRingOffsets

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

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

    Layout

    
     struct io_cqring_offsets {
         __u32 head;
         __u32 tail;
         __u32 ring_mask;
         __u32 ring_entries;
         __u32 overflow;
         __u32 cqes;
         __u32 flags;
         __u32 resv1;
         __u64 resv2;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • HEAD, TAIL, RING_MASK, RING_ENTRIES, OVERFLOW, CQES, FLAGS, RESV1, RESV2

        The struct member offsets.
    • Constructor Detail

      • IOCQRingOffsets

        public IOCQRingOffsets​(java.nio.ByteBuffer container)
        Creates a IOCQRingOffsets 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
      • head

        public int head()
        Returns:
        the value of the head field.
      • tail

        public int tail()
        Returns:
        the value of the tail field.
      • ring_mask

        public int ring_mask()
        Returns:
        the value of the ring_mask field.
      • ring_entries

        public int ring_entries()
        Returns:
        the value of the ring_entries field.
      • overflow

        public int overflow()
        Returns:
        the value of the overflow field.
      • cqes

        public int cqes()
        Returns:
        the value of the cqes field.
      • flags

        public int flags()
        Returns:
        the value of the flags field.
      • head

        public IOCQRingOffsets head​(int value)
        Sets the specified value to the head field.
      • tail

        public IOCQRingOffsets tail​(int value)
        Sets the specified value to the tail field.
      • ring_mask

        public IOCQRingOffsets ring_mask​(int value)
        Sets the specified value to the ring_mask field.
      • ring_entries

        public IOCQRingOffsets ring_entries​(int value)
        Sets the specified value to the ring_entries field.
      • overflow

        public IOCQRingOffsets overflow​(int value)
        Sets the specified value to the overflow field.
      • cqes

        public IOCQRingOffsets cqes​(int value)
        Sets the specified value to the cqes field.
      • flags

        public IOCQRingOffsets flags​(int value)
        Sets the specified value to the flags field.
      • set

        public IOCQRingOffsets set​(int head,
                                   int tail,
                                   int ring_mask,
                                   int ring_entries,
                                   int overflow,
                                   int cqes,
                                   int flags)
        Initializes this struct with the specified values.
      • set

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public static int nhead​(long struct)
        Unsafe version of head().
      • ntail

        public static int ntail​(long struct)
        Unsafe version of tail().
      • nring_mask

        public static int nring_mask​(long struct)
        Unsafe version of ring_mask().
      • nring_entries

        public static int nring_entries​(long struct)
        Unsafe version of ring_entries().
      • noverflow

        public static int noverflow​(long struct)
        Unsafe version of overflow().
      • ncqes

        public static int ncqes​(long struct)
        Unsafe version of cqes().
      • nflags

        public static int nflags​(long struct)
        Unsafe version of flags().
      • nresv1

        public static int nresv1​(long struct)
      • nresv2

        public static long nresv2​(long struct)
      • nhead

        public static void nhead​(long struct,
                                 int value)
        Unsafe version of head.
      • ntail

        public static void ntail​(long struct,
                                 int value)
        Unsafe version of tail.
      • nring_mask

        public static void nring_mask​(long struct,
                                      int value)
        Unsafe version of ring_mask.
      • nring_entries

        public static void nring_entries​(long struct,
                                         int value)
        Unsafe version of ring_entries.
      • noverflow

        public static void noverflow​(long struct,
                                     int value)
        Unsafe version of overflow.
      • ncqes

        public static void ncqes​(long struct,
                                 int value)
        Unsafe version of cqes.
      • nflags

        public static void nflags​(long struct,
                                  int value)
        Unsafe version of flags.
      • nresv1

        public static void nresv1​(long struct,
                                  int value)
      • nresv2

        public static void nresv2​(long struct,
                                  long value)