Package org.lwjgl.system.linux.liburing
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];
}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionIOURingRestriction
(ByteBuffer container) Creates aIOURingRestriction
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic IOURingRestriction
calloc()
Returns a newIOURingRestriction
instance allocated withmemCalloc
.static IOURingRestriction.Buffer
calloc
(int capacity) Returns a newIOURingRestriction.Buffer
instance allocated withmemCalloc
.static IOURingRestriction.Buffer
calloc
(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newIOURingRestriction.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOURingRestriction
calloc
(org.lwjgl.system.MemoryStack stack) Returns a newIOURingRestriction
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOURingRestriction
create()
Returns a newIOURingRestriction
instance allocated withBufferUtils
.static IOURingRestriction.Buffer
create
(int capacity) Returns a newIOURingRestriction.Buffer
instance allocated withBufferUtils
.static IOURingRestriction
create
(long address) Returns a newIOURingRestriction
instance for the specified memory address.static IOURingRestriction.Buffer
create
(long address, int capacity) Create aIOURingRestriction.Buffer
instance at the specified memory.static IOURingRestriction
createSafe
(long address) static IOURingRestriction.Buffer
createSafe
(long address, int capacity) static IOURingRestriction
malloc()
Returns a newIOURingRestriction
instance allocated withmemAlloc
.static IOURingRestriction.Buffer
malloc
(int capacity) Returns a newIOURingRestriction.Buffer
instance allocated withmemAlloc
.static IOURingRestriction.Buffer
malloc
(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newIOURingRestriction.Buffer
instance allocated on the specifiedMemoryStack
.static IOURingRestriction
malloc
(org.lwjgl.system.MemoryStack stack) Returns a newIOURingRestriction
instance allocated on the specifiedMemoryStack
.static short
nopcode
(long struct) Unsafe version ofopcode()
.static void
nopcode
(long struct, short value) Unsafe version ofopcode
.static byte
nregister_op
(long struct) Unsafe version ofregister_op()
.static void
nregister_op
(long struct, byte value) Unsafe version ofregister_op
.static byte
nresv
(long struct) static void
nresv
(long struct, byte value) static IntBuffer
nresv2
(long struct) static int
nresv2
(long struct, int index) static void
nresv2
(long struct, int index, int value) static void
static byte
nsqe_flags
(long struct) Unsafe version ofsqe_flags()
.static void
nsqe_flags
(long struct, byte value) Unsafe version ofsqe_flags
.static byte
nsqe_op
(long struct) Unsafe version ofsqe_op()
.static void
nsqe_op
(long struct, byte value) Unsafe version ofsqe_op
.short
opcode()
opcode
(short value) Sets the specified value to theopcode
field.byte
register_op
(byte value) Sets the specified value to theregister_op
field.set
(IOURingRestriction src) Copies the specified struct data to this struct.int
sizeof()
byte
sqe_flags
(byte value) Sets the specified value to thesqe_flags
field.byte
sqe_op()
sqe_op
(byte value) Sets the specified value to thesqe_op
field.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
OPCODE
public static final int OPCODEThe struct member offsets. -
REGISTER_OP
public static final int REGISTER_OPThe struct member offsets. -
SQE_OP
public static final int SQE_OPThe struct member offsets. -
SQE_FLAGS
public static final int SQE_FLAGSThe struct member offsets. -
RESV
public static final int RESVThe struct member offsets. -
RESV2
public static final int RESV2The struct member offsets.
-
-
Constructor Details
-
IOURingRestriction
Creates aIOURingRestriction
instance at the current position of the specifiedByteBuffer
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 classorg.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
Sets the specified value to theopcode
field. -
register_op
Sets the specified value to theregister_op
field. -
sqe_op
Sets the specified value to thesqe_op
field. -
sqe_flags
Sets the specified value to thesqe_flags
field. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newIOURingRestriction
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newIOURingRestriction
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newIOURingRestriction
instance allocated withBufferUtils
. -
create
Returns a newIOURingRestriction
instance for the specified memory address. -
createSafe
-
malloc
Returns a newIOURingRestriction.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newIOURingRestriction.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newIOURingRestriction.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aIOURingRestriction.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newIOURingRestriction
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newIOURingRestriction
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newIOURingRestriction.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newIOURingRestriction.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nopcode
public static short nopcode(long struct) Unsafe version ofopcode()
. -
nregister_op
public static byte nregister_op(long struct) Unsafe version ofregister_op()
. -
nsqe_op
public static byte nsqe_op(long struct) Unsafe version ofsqe_op()
. -
nsqe_flags
public static byte nsqe_flags(long struct) Unsafe version ofsqe_flags()
. -
nresv
public static byte nresv(long struct) -
nresv2
-
nresv2
public static int nresv2(long struct, int index) -
nopcode
public static void nopcode(long struct, short value) Unsafe version ofopcode
. -
nregister_op
public static void nregister_op(long struct, byte value) Unsafe version ofregister_op
. -
nsqe_op
public static void nsqe_op(long struct, byte value) Unsafe version ofsqe_op
. -
nsqe_flags
public static void nsqe_flags(long struct, byte value) Unsafe version ofsqe_flags
. -
nresv
public static void nresv(long struct, byte value) -
nresv2
-
nresv2
public static void nresv2(long struct, int index, int value)
-