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.NativeResourceLayout
struct io_uring_probe { __u8 last_op; __u8 ops_len; __u16 resv; __u32 resv2[3];struct io_uring_probe_opops[0]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIOURingProbe.BufferAn array ofIOURingProbestructs.
-
Constructor Summary
Constructors Constructor Description IOURingProbe(java.nio.ByteBuffer container)Creates aIOURingProbeinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IOURingProbecalloc()Returns a newIOURingProbeinstance allocated withmemCalloc.static IOURingProbe.Buffercalloc(int capacity)Returns a newIOURingProbe.Bufferinstance allocated withmemCalloc.static IOURingProbe.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newIOURingProbe.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingProbecalloc(org.lwjgl.system.MemoryStack stack)Returns a newIOURingProbeinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingProbecreate()Returns a newIOURingProbeinstance allocated withBufferUtils.static IOURingProbe.Buffercreate(int capacity)Returns a newIOURingProbe.Bufferinstance allocated withBufferUtils.static IOURingProbecreate(long address)Returns a newIOURingProbeinstance for the specified memory address.static IOURingProbe.Buffercreate(long address, int capacity)Create aIOURingProbe.Bufferinstance at the specified memory.static IOURingProbecreateSafe(long address)static IOURingProbe.BuffercreateSafe(long address, int capacity)bytelast_op()IOURingProbelast_op(byte value)Sets the specified value to thelast_opfield.static IOURingProbemalloc()Returns a newIOURingProbeinstance allocated withmemAlloc.static IOURingProbe.Buffermalloc(int capacity)Returns a newIOURingProbe.Bufferinstance allocated withmemAlloc.static IOURingProbe.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newIOURingProbe.Bufferinstance allocated on the specifiedMemoryStack.static IOURingProbemalloc(org.lwjgl.system.MemoryStack stack)Returns a newIOURingProbeinstance allocated on the specifiedMemoryStack.static bytenlast_op(long struct)Unsafe version oflast_op().static voidnlast_op(long struct, byte value)Unsafe version oflast_op.static IOURingProbeOp.Buffernops(long struct)Unsafe version ofops().static IOURingProbeOpnops(long struct, int index)Unsafe version ofops.static voidnops(long struct, int index, IOURingProbeOp value)Unsafe version ofops.static voidnops(long struct, IOURingProbeOp.Buffer value)Unsafe version ofops.static bytenops_len(long struct)Unsafe version ofops_len().static voidnops_len(long struct, byte value)Unsafe version ofops_len.static shortnresv(long struct)Unsafe version ofresv().static voidnresv(long struct, short value)Unsafe version ofresv.static java.nio.IntBuffernresv2(long struct)static intnresv2(long struct, int index)static voidnresv2(long struct, int index, int value)static voidnresv2(long struct, java.nio.IntBuffer value)IOURingProbeOp.Bufferops()IOURingProbeOpops(int index)IOURingProbeops(int index, java.util.function.Consumer<IOURingProbeOp> consumer)Passes the element atindexof theopsfield to the specifiedConsumer.IOURingProbeops(int index, IOURingProbeOp value)Copies the specifiedIOURingProbeOpat the specified index of theopsfield.IOURingProbeops(java.util.function.Consumer<IOURingProbeOp.Buffer> consumer)Passes theopsfield to the specifiedConsumer.IOURingProbeops(IOURingProbeOp.Buffer value)Copies the specifiedIOURingProbeOp.Bufferto theopsfield.byteops_len()IOURingProbeops_len(byte value)Sets the specified value to theops_lenfield.shortresv()IOURingProberesv(short value)Sets the specified value to theresvfield.IOURingProbeset(byte last_op, byte ops_len, short resv, IOURingProbeOp.Buffer ops)Initializes this struct with the specified values.IOURingProbeset(IOURingProbe src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
IOURingProbe
public IOURingProbe(java.nio.ByteBuffer container)
Creates aIOURingProbeinstance at the current position of the specifiedByteBuffercontainer. 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:
sizeofin classorg.lwjgl.system.Struct
-
last_op
public byte last_op()
- Returns:
- the value of the
last_opfield.
-
ops_len
public byte ops_len()
- Returns:
- the value of the
ops_lenfield.
-
resv
public short resv()
- Returns:
- the value of the
resvfield.
-
ops
public IOURingProbeOp.Buffer ops()
- Returns:
- a
IOURingProbeOp.Buffer view of theopsfield.
-
ops
public IOURingProbeOp ops(int index)
- Returns:
- a
IOURingProbeOpview of the struct at the specified index of theopsfield.
-
last_op
public IOURingProbe last_op(byte value)
Sets the specified value to thelast_opfield.
-
ops_len
public IOURingProbe ops_len(byte value)
Sets the specified value to theops_lenfield.
-
resv
public IOURingProbe resv(short value)
Sets the specified value to theresvfield.
-
ops
public IOURingProbe ops(IOURingProbeOp.Buffer value)
Copies the specifiedIOURingProbeOp.Bufferto theopsfield.
-
ops
public IOURingProbe ops(int index, IOURingProbeOp value)
Copies the specifiedIOURingProbeOpat the specified index of theopsfield.
-
ops
public IOURingProbe ops(java.util.function.Consumer<IOURingProbeOp.Buffer> consumer)
Passes theopsfield to the specifiedConsumer.
-
ops
public IOURingProbe ops(int index, java.util.function.Consumer<IOURingProbeOp> consumer)
Passes the element atindexof theopsfield 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 newIOURingProbeinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static IOURingProbe calloc()
Returns a newIOURingProbeinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static IOURingProbe create()
Returns a newIOURingProbeinstance allocated withBufferUtils.
-
create
public static IOURingProbe create(long address)
Returns a newIOURingProbeinstance for the specified memory address.
-
createSafe
@Nullable public static IOURingProbe createSafe(long address)
-
malloc
public static IOURingProbe.Buffer malloc(int capacity)
Returns a newIOURingProbe.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static IOURingProbe.Buffer calloc(int capacity)
Returns a newIOURingProbe.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static IOURingProbe.Buffer create(int capacity)
Returns a newIOURingProbe.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static IOURingProbe.Buffer create(long address, int capacity)
Create aIOURingProbe.Bufferinstance 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 newIOURingProbeinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static IOURingProbe calloc(org.lwjgl.system.MemoryStack stack)
Returns a newIOURingProbeinstance allocated on the specifiedMemoryStackand 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.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand 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.
-
-