Class IOURingRSRCUpdate2

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<IOURingRSRCUpdate2>
org.lwjgl.system.linux.liburing.IOURingRSRCUpdate2
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class IOURingRSRCUpdate2 extends org.lwjgl.system.Struct<IOURingRSRCUpdate2> implements org.lwjgl.system.NativeResource

Layout


 struct io_uring_rsrc_update2 {
     __u32 offset;
     __u32 resv;
     __u64 data;
     __u64 tags;
     __u32 nr;
     __u32 resv2;
 }
  • Field Details

    • SIZEOF

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

      public static final int ALIGNOF
      The struct alignment in bytes.
    • OFFSET

      public static final int OFFSET
      The struct member offsets.
    • RESV

      public static final int RESV
      The struct member offsets.
    • DATA

      public static final int DATA
      The struct member offsets.
    • TAGS

      public static final int TAGS
      The struct member offsets.
    • NR

      public static final int NR
      The struct member offsets.
    • RESV2

      public static final int RESV2
      The struct member offsets.
  • Constructor Details

    • IOURingRSRCUpdate2

      public IOURingRSRCUpdate2(ByteBuffer container)
      Creates a IOURingRSRCUpdate2 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 Details

    • sizeof

      public int sizeof()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<IOURingRSRCUpdate2>
    • 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.
    • tags

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

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

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

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

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

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

      public IOURingRSRCUpdate2 tags(long value)
      Sets the specified value to the tags field.
    • nr

      public IOURingRSRCUpdate2 nr(int value)
      Sets the specified value to the nr field.
    • resv2

      public IOURingRSRCUpdate2 resv2(int value)
      Sets the specified value to the resv2 field.
    • set

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

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static IOURingRSRCUpdate2.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new IOURingRSRCUpdate2.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • 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().
    • ntags

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

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

      public static int nresv2(long struct)
      Unsafe version of resv2().
    • 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.
    • ntags

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

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

      public static void nresv2(long struct, int value)
      Unsafe version of resv2.