Package org.lwjgl.system.linux.liburing
Class IOURingProbe
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<IOURingProbe>
org.lwjgl.system.linux.liburing.IOURingProbe
- All Implemented Interfaces:
AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class IOURingProbe
extends org.lwjgl.system.Struct<IOURingProbe>
implements org.lwjgl.system.NativeResource
Layout
struct io_uring_probe {
__u8 last_op;
__u8 ops_len;
__u16 resv;
__u32 resv2[3];
struct io_uring_probe_op
ops[0];
}
-
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 member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionIOURingProbe
(ByteBuffer container) Creates aIOURingProbe
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic IOURingProbe
calloc()
Returns a newIOURingProbe
instance allocated withmemCalloc
.static IOURingProbe.Buffer
calloc
(int capacity) Returns a newIOURingProbe.Buffer
instance allocated withmemCalloc
.static IOURingProbe.Buffer
calloc
(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newIOURingProbe.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOURingProbe
calloc
(org.lwjgl.system.MemoryStack stack) Returns a newIOURingProbe
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOURingProbe
create()
Returns a newIOURingProbe
instance allocated withBufferUtils
.static IOURingProbe.Buffer
create
(int capacity) Returns a newIOURingProbe.Buffer
instance allocated withBufferUtils
.static IOURingProbe
create
(long address) Returns a newIOURingProbe
instance for the specified memory address.static IOURingProbe.Buffer
create
(long address, int capacity) Create aIOURingProbe.Buffer
instance at the specified memory.static IOURingProbe
createSafe
(long address) static IOURingProbe.Buffer
createSafe
(long address, int capacity) byte
last_op()
last_op
(byte value) Sets the specified value to thelast_op
field.static IOURingProbe
malloc()
Returns a newIOURingProbe
instance allocated withmemAlloc
.static IOURingProbe.Buffer
malloc
(int capacity) Returns a newIOURingProbe.Buffer
instance allocated withmemAlloc
.static IOURingProbe.Buffer
malloc
(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newIOURingProbe.Buffer
instance allocated on the specifiedMemoryStack
.static IOURingProbe
malloc
(org.lwjgl.system.MemoryStack stack) Returns a newIOURingProbe
instance allocated on the specifiedMemoryStack
.static byte
nlast_op
(long struct) Unsafe version oflast_op()
.static void
nlast_op
(long struct, byte value) Unsafe version oflast_op
.static IOURingProbeOp.Buffer
nops
(long struct) Unsafe version ofops()
.static IOURingProbeOp
nops
(long struct, int index) Unsafe version ofops
.static void
nops
(long struct, int index, IOURingProbeOp value) Unsafe version ofops
.static void
nops
(long struct, IOURingProbeOp.Buffer value) Unsafe version ofops
.static byte
nops_len
(long struct) Unsafe version ofops_len()
.static void
nops_len
(long struct, byte value) Unsafe version ofops_len
.static short
nresv
(long struct) Unsafe version ofresv()
.static void
nresv
(long struct, short value) Unsafe version ofresv
.static IntBuffer
nresv2
(long struct) static int
nresv2
(long struct, int index) static void
nresv2
(long struct, int index, int value) static void
ops()
ops
(int index) ops
(int index, Consumer<IOURingProbeOp> consumer) ops
(int index, IOURingProbeOp value) Copies the specifiedIOURingProbeOp
at the specified index of theops
field.ops
(Consumer<IOURingProbeOp.Buffer> consumer) Passes theops
field to the specifiedConsumer
.ops
(IOURingProbeOp.Buffer value) Copies the specifiedIOURingProbeOp.Buffer
to theops
field.byte
ops_len()
ops_len
(byte value) Sets the specified value to theops_len
field.short
resv()
resv
(short value) Sets the specified value to theresv
field.set
(byte last_op, byte ops_len, short resv, IOURingProbeOp.Buffer ops) Initializes this struct with the specified values.set
(IOURingProbe src) Copies the specified struct data to this struct.int
sizeof()
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. -
LAST_OP
public static final int LAST_OPThe struct member offsets. -
OPS_LEN
public static final int OPS_LENThe struct member offsets. -
RESV
public static final int RESVThe struct member offsets. -
RESV2
public static final int RESV2The struct member offsets. -
OPS
public static final int OPSThe struct member offsets.
-
-
Constructor Details
-
IOURingProbe
Creates aIOURingProbe
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<IOURingProbe>
-
last_op
public byte last_op()- Returns:
- the value of the
last_op
field.
-
ops_len
public byte ops_len()- Returns:
- the value of the
ops_len
field.
-
resv
public short resv()- Returns:
- the value of the
resv
field.
-
ops
- Returns:
- a
IOURingProbeOp
.Buffer view of theops
field.
-
ops
- Returns:
- a
IOURingProbeOp
view of the struct at the specified index of theops
field.
-
last_op
Sets the specified value to thelast_op
field. -
ops_len
Sets the specified value to theops_len
field. -
resv
Sets the specified value to theresv
field. -
ops
Copies the specifiedIOURingProbeOp.Buffer
to theops
field. -
ops
Copies the specifiedIOURingProbeOp
at the specified index of theops
field. -
ops
Passes theops
field to the specifiedConsumer
. -
ops
-
set
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
Returns a newIOURingProbe
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newIOURingProbe
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newIOURingProbe
instance allocated withBufferUtils
. -
create
Returns a newIOURingProbe
instance for the specified memory address. -
createSafe
-
malloc
Returns a newIOURingProbe.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newIOURingProbe.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newIOURingProbe.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aIOURingProbe.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newIOURingProbe
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newIOURingProbe
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newIOURingProbe.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newIOURingProbe.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nlast_op
public static byte nlast_op(long struct) Unsafe version oflast_op()
. -
nops_len
public static byte nops_len(long struct) Unsafe version ofops_len()
. -
nresv
public static short nresv(long struct) Unsafe version ofresv()
. -
nresv2
-
nresv2
public static int nresv2(long struct, int index) -
nops
Unsafe version ofops()
. -
nops
Unsafe version ofops
. -
nlast_op
public static void nlast_op(long struct, byte value) Unsafe version oflast_op
. -
nops_len
public static void nops_len(long struct, byte value) Unsafe version ofops_len
. -
nresv
public static void nresv(long struct, short value) Unsafe version ofresv
. -
nresv2
-
nresv2
public static void nresv2(long struct, int index, int value) -
nops
Unsafe version ofops
. -
nops
Unsafe version ofops
.
-