Class IOURingRSRCRegister

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

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

    Layout

    
     struct io_uring_rsrc_register {
         __u32 nr;
         __u32 resv;
         __u64 resv2;
         __u64 data;
         __u64 tags;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • NR, RESV, RESV2, DATA, TAGS

        The struct member offsets.
    • Constructor Detail

      • IOURingRSRCRegister

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

        public int nr()
        Returns:
        the value of the nr field.
      • resv

        public int resv()
        Returns:
        the value of the resv field.
      • resv2

        public long resv2()
        Returns:
        the value of the resv2 field.
      • data

        public long data()
        Returns:
        the value of the data field.
      • tags

        public long tags()
        Returns:
        the value of the tags field.
      • resv

        public IOURingRSRCRegister resv​(int value)
        Sets the specified value to the resv field.
      • resv2

        public IOURingRSRCRegister resv2​(long value)
        Sets the specified value to the resv2 field.
      • data

        public IOURingRSRCRegister data​(long value)
        Sets the specified value to the data field.
      • tags

        public IOURingRSRCRegister tags​(long value)
        Sets the specified value to the tags field.
      • set

        public IOURingRSRCRegister set​(int nr,
                                       int resv,
                                       long resv2,
                                       long data,
                                       long tags)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

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

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

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

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

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

        public static int nnr​(long struct)
        Unsafe version of nr().
      • nresv

        public static int nresv​(long struct)
        Unsafe version of resv().
      • nresv2

        public static long nresv2​(long struct)
        Unsafe version of resv2().
      • ndata

        public static long ndata​(long struct)
        Unsafe version of data().
      • ntags

        public static long ntags​(long struct)
        Unsafe version of tags().
      • nnr

        public static void nnr​(long struct,
                               int value)
        Unsafe version of nr.
      • nresv

        public static void nresv​(long struct,
                                 int value)
        Unsafe version of resv.
      • nresv2

        public static void nresv2​(long struct,
                                  long value)
        Unsafe version of resv2.
      • ndata

        public static void ndata​(long struct,
                                 long value)
        Unsafe version of data.
      • ntags

        public static void ntags​(long struct,
                                 long value)
        Unsafe version of tags.