Package org.lwjgl.system.linux.liburing
Class IOURingProbe
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
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 ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionIOURingProbe(ByteBuffer container) Creates aIOURingProbeinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic IOURingProbecalloc()Returns a newIOURingProbeinstance allocated withmemCalloc.static IOURingProbe.Buffercalloc(int capacity) Returns a newIOURingProbe.Bufferinstance allocated withmemCalloc.static IOURingProbe.Buffercalloc(int capacity, MemoryStack stack) Returns a newIOURingProbe.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingProbecalloc(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 @Nullable IOURingProbecreateSafe(long address) static @Nullable IOURingProbe.BuffercreateSafe(long address, int capacity) bytelast_op()last_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, MemoryStack stack) Returns a newIOURingProbe.Bufferinstance allocated on the specifiedMemoryStack.static IOURingProbemalloc(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) static voidnresv(long struct, short value) static IntBuffernresv2(long struct) static intnresv2(long struct, int index) static voidnresv2(long struct, int index, int value) static voidops()ops(int index) ops(int index, Consumer<IOURingProbeOp> consumer) ops(int index, IOURingProbeOp value) Copies the specifiedIOURingProbeOpat the specified index of theopsfield.ops(Consumer<IOURingProbeOp.Buffer> consumer) Passes theopsfield to the specifiedConsumer.ops(IOURingProbeOp.Buffer value) Copies the specifiedIOURingProbeOp.Bufferto theopsfield.byteops_len()ops_len(byte value) Sets the specified value to theops_lenfield.set(byte last_op, byte ops_len, IOURingProbeOp.Buffer ops) Initializes this struct with the specified values.set(IOURingProbe src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<IOURingProbe>
-
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.
-
ops
- Returns:
- a
IOURingProbeOp.Buffer view of theopsfield.
-
ops
- Returns:
- a
IOURingProbeOpview of the struct at the specified index of theopsfield.
-
last_op
Sets the specified value to thelast_opfield. -
ops_len
Sets the specified value to theops_lenfield. -
ops
Copies the specifiedIOURingProbeOp.Bufferto theopsfield. -
ops
Copies the specifiedIOURingProbeOpat the specified index of theopsfield. -
ops
Passes theopsfield 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 newIOURingProbeinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newIOURingProbeinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newIOURingProbeinstance allocated withBufferUtils. -
create
Returns a newIOURingProbeinstance for the specified memory address. -
createSafe
-
malloc
Returns a newIOURingProbe.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newIOURingProbe.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newIOURingProbe.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aIOURingProbe.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newIOURingProbeinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newIOURingProbeinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newIOURingProbe.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newIOURingProbe.Bufferinstance allocated on the specifiedMemoryStackand 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) -
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) -
nresv2
-
nresv2
public static void nresv2(long struct, int index, int value) -
nops
Unsafe version ofops. -
nops
Unsafe version ofops.
-