Class IOURingRestriction

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

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

Layout


 struct io_uring_restriction {
     __u16 opcode;
     union {
         __u8 register_op;
         __u8 sqe_op;
         __u8 sqe_flags;
     };
     __u8 resv;
     __u32 resv2[3];
 }
  • Field Details

    • SIZEOF

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

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

      public static final int OPCODE
      The struct member offsets.
    • REGISTER_OP

      public static final int REGISTER_OP
      The struct member offsets.
    • SQE_OP

      public static final int SQE_OP
      The struct member offsets.
    • SQE_FLAGS

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

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

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

    • IOURingRestriction

      public IOURingRestriction(ByteBuffer container)
      Creates a IOURingRestriction 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<IOURingRestriction>
    • opcode

      public short opcode()
      Returns:
      the value of the opcode field.
    • register_op

      public byte register_op()
      Returns:
      the value of the register_op field.
    • sqe_op

      public byte sqe_op()
      Returns:
      the value of the sqe_op field.
    • sqe_flags

      public byte sqe_flags()
      Returns:
      the value of the sqe_flags field.
    • opcode

      public IOURingRestriction opcode(short value)
      Sets the specified value to the opcode field.
    • register_op

      public IOURingRestriction register_op(byte value)
      Sets the specified value to the register_op field.
    • sqe_op

      public IOURingRestriction sqe_op(byte value)
      Sets the specified value to the sqe_op field.
    • sqe_flags

      public IOURingRestriction sqe_flags(byte value)
      Sets the specified value to the sqe_flags field.
    • set

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static short nopcode(long struct)
      Unsafe version of opcode().
    • nregister_op

      public static byte nregister_op(long struct)
      Unsafe version of register_op().
    • nsqe_op

      public static byte nsqe_op(long struct)
      Unsafe version of sqe_op().
    • nsqe_flags

      public static byte nsqe_flags(long struct)
      Unsafe version of sqe_flags().
    • nresv

      public static byte nresv(long struct)
    • nresv2

      public static IntBuffer nresv2(long struct)
    • nresv2

      public static int nresv2(long struct, int index)
    • nopcode

      public static void nopcode(long struct, short value)
      Unsafe version of opcode.
    • nregister_op

      public static void nregister_op(long struct, byte value)
      Unsafe version of register_op.
    • nsqe_op

      public static void nsqe_op(long struct, byte value)
      Unsafe version of sqe_op.
    • nsqe_flags

      public static void nsqe_flags(long struct, byte value)
      Unsafe version of sqe_flags.
    • nresv

      public static void nresv(long struct, byte value)
    • nresv2

      public static void nresv2(long struct, IntBuffer value)
    • nresv2

      public static void nresv2(long struct, int index, int value)