Package org.lwjgl.system.linux.liburing
Class IOURingProbe
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.system.linux.liburing.IOURingProbe
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class IOURingProbe extends org.lwjgl.system.Struct 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 Modifier and Type Class Description static class
IOURingProbe.Buffer
An array ofIOURingProbe
structs.
-
Constructor Summary
Constructors Constructor Description IOURingProbe(java.nio.ByteBuffer container)
Creates aIOURingProbe
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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()
IOURingProbe
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 java.nio.IntBuffer
nresv2(long struct)
static int
nresv2(long struct, int index)
static void
nresv2(long struct, int index, int value)
static void
nresv2(long struct, java.nio.IntBuffer value)
IOURingProbeOp.Buffer
ops()
IOURingProbeOp
ops(int index)
IOURingProbe
ops(int index, java.util.function.Consumer<IOURingProbeOp> consumer)
Passes the element atindex
of theops
field to the specifiedConsumer
.IOURingProbe
ops(int index, IOURingProbeOp value)
Copies the specifiedIOURingProbeOp
at the specified index of theops
field.IOURingProbe
ops(java.util.function.Consumer<IOURingProbeOp.Buffer> consumer)
Passes theops
field to the specifiedConsumer
.IOURingProbe
ops(IOURingProbeOp.Buffer value)
Copies the specifiedIOURingProbeOp.Buffer
to theops
field.byte
ops_len()
IOURingProbe
ops_len(byte value)
Sets the specified value to theops_len
field.short
resv()
IOURingProbe
resv(short value)
Sets the specified value to theresv
field.IOURingProbe
set(byte last_op, byte ops_len, short resv, IOURingProbeOp.Buffer ops)
Initializes this struct with the specified values.IOURingProbe
set(IOURingProbe src)
Copies the specified struct data to this struct.int
sizeof()
-
-
-
Constructor Detail
-
IOURingProbe
public IOURingProbe(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
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
public IOURingProbeOp.Buffer ops()
- Returns:
- a
IOURingProbeOp
.Buffer view of theops
field.
-
ops
public IOURingProbeOp ops(int index)
- Returns:
- a
IOURingProbeOp
view of the struct at the specified index of theops
field.
-
last_op
public IOURingProbe last_op(byte value)
Sets the specified value to thelast_op
field.
-
ops_len
public IOURingProbe ops_len(byte value)
Sets the specified value to theops_len
field.
-
resv
public IOURingProbe resv(short value)
Sets the specified value to theresv
field.
-
ops
public IOURingProbe ops(IOURingProbeOp.Buffer value)
Copies the specifiedIOURingProbeOp.Buffer
to theops
field.
-
ops
public IOURingProbe ops(int index, IOURingProbeOp value)
Copies the specifiedIOURingProbeOp
at the specified index of theops
field.
-
ops
public IOURingProbe ops(java.util.function.Consumer<IOURingProbeOp.Buffer> consumer)
Passes theops
field to the specifiedConsumer
.
-
ops
public IOURingProbe ops(int index, java.util.function.Consumer<IOURingProbeOp> consumer)
Passes the element atindex
of theops
field to the specifiedConsumer
.
-
set
public IOURingProbe set(byte last_op, byte ops_len, short resv, IOURingProbeOp.Buffer ops)
Initializes this struct with the specified values.
-
set
public IOURingProbe set(IOURingProbe src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static IOURingProbe malloc()
Returns a newIOURingProbe
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static IOURingProbe calloc()
Returns a newIOURingProbe
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static IOURingProbe create()
Returns a newIOURingProbe
instance allocated withBufferUtils
.
-
create
public static IOURingProbe create(long address)
Returns a newIOURingProbe
instance for the specified memory address.
-
createSafe
@Nullable public static IOURingProbe createSafe(long address)
-
malloc
public static IOURingProbe.Buffer malloc(int capacity)
Returns a newIOURingProbe.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static IOURingProbe.Buffer calloc(int capacity)
Returns a newIOURingProbe.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static IOURingProbe.Buffer create(int capacity)
Returns a newIOURingProbe.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static IOURingProbe.Buffer create(long address, int capacity)
Create aIOURingProbe.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static IOURingProbe.Buffer createSafe(long address, int capacity)
-
malloc
public static IOURingProbe malloc(org.lwjgl.system.MemoryStack stack)
Returns a newIOURingProbe
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
public static IOURingProbe calloc(org.lwjgl.system.MemoryStack stack)
Returns a newIOURingProbe
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
public static IOURingProbe.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newIOURingProbe.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
calloc
public 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.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
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
public static java.nio.IntBuffer nresv2(long struct)
-
nresv2
public static int nresv2(long struct, int index)
-
nops
public static IOURingProbeOp.Buffer nops(long struct)
Unsafe version ofops()
.
-
nops
public static IOURingProbeOp nops(long struct, int index)
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
public static void nresv2(long struct, java.nio.IntBuffer value)
-
nresv2
public static void nresv2(long struct, int index, int value)
-
nops
public static void nops(long struct, IOURingProbeOp.Buffer value)
Unsafe version ofops
.
-
nops
public static void nops(long struct, int index, IOURingProbeOp value)
Unsafe version ofops
.
-
-