Class IOURingRSRCRegister

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct
org.lwjgl.system.linux.liburing.IOURingRSRCRegister
All Implemented Interfaces:
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 flags;
     __u64 resv2;
     __u64 data;
     __u64 tags;
 }
  • Field Details

    • SIZEOF

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

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

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

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

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

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

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

    • IOURingRSRCRegister

      public IOURingRSRCRegister(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 Details

    • sizeof

      public int sizeof()
      Specified by:
      sizeof in class org.lwjgl.system.Struct
    • nr

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

      public int flags()
      Returns:
      the value of the flags 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.
    • nr

      public IOURingRSRCRegister nr(int value)
      Sets the specified value to the nr field.
    • flags

      public IOURingRSRCRegister flags(int value)
      Sets the specified value to the flags 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 flags, long resv2, long data, long tags)
      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 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.Buffer malloc(int capacity)
      Returns a new IOURingRSRCRegister.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

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

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

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

      @Nullable public static IOURingRSRCRegister.Buffer createSafe(long address, int capacity)
      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:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • 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:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • nnr

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

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

      public static void nflags(long struct, int value)
      Unsafe version of flags.
    • 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.