Class IOURingRSRCUpdate

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

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

    Layout

    
     struct io_uring_rsrc_update {
         __u32 offset;
         __u32 resv;
         __u64 data;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • OFFSET, RESV, DATA

        The struct member offsets.
    • Constructor Detail

      • IOURingRSRCUpdate

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

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

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

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

        public IOURingRSRCUpdate offset​(int value)
        Sets the specified value to the offset field.
      • resv

        public IOURingRSRCUpdate resv​(int value)
        Sets the specified value to the resv field.
      • data

        public IOURingRSRCUpdate data​(long value)
        Sets the specified value to the data field.
      • set

        public IOURingRSRCUpdate set​(int offset,
                                     int resv,
                                     long data)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

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

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

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

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

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

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

        public static int noffset​(long struct)
        Unsafe version of offset().
      • nresv

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

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

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

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

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