Package org.lwjgl.system.linux.liburing
Class IOURingProbeOp
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct
org.lwjgl.system.linux.liburing.IOURingProbeOp
- All Implemented Interfaces:
AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class IOURingProbeOp
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
Layout
struct io_uring_probe_op {
__u8 op;
__u8 resv;
__u16 flags()
;
__u32 resv2;
}
-
Nested Class Summary
Nested ClassesNested 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
FieldsModifier 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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionIOURingProbeOp
(ByteBuffer container) Creates aIOURingProbeOp
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic IOURingProbeOp
calloc()
Returns a newIOURingProbeOp
instance allocated withmemCalloc
.static IOURingProbeOp.Buffer
calloc
(int capacity) Returns a newIOURingProbeOp.Buffer
instance allocated withmemCalloc
.static IOURingProbeOp.Buffer
calloc
(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newIOURingProbeOp.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOURingProbeOp
calloc
(org.lwjgl.system.MemoryStack stack) Returns a newIOURingProbeOp
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOURingProbeOp
create()
Returns a newIOURingProbeOp
instance allocated withBufferUtils
.static IOURingProbeOp.Buffer
create
(int capacity) Returns a newIOURingProbeOp.Buffer
instance allocated withBufferUtils
.static IOURingProbeOp
create
(long address) Returns a newIOURingProbeOp
instance for the specified memory address.static IOURingProbeOp.Buffer
create
(long address, int capacity) Create aIOURingProbeOp.Buffer
instance at the specified memory.static IOURingProbeOp
createSafe
(long address) static IOURingProbeOp.Buffer
createSafe
(long address, int capacity) short
flags()
one or more of:LibIOURing.IO_URING_OP_SUPPORTED
flags
(short value) Sets the specified value to theflags()
field.static IOURingProbeOp
malloc()
Returns a newIOURingProbeOp
instance allocated withmemAlloc
.static IOURingProbeOp.Buffer
malloc
(int capacity) Returns a newIOURingProbeOp.Buffer
instance allocated withmemAlloc
.static IOURingProbeOp.Buffer
malloc
(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newIOURingProbeOp.Buffer
instance allocated on the specifiedMemoryStack
.static IOURingProbeOp
malloc
(org.lwjgl.system.MemoryStack stack) Returns a newIOURingProbeOp
instance allocated on the specifiedMemoryStack
.static short
nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, short value) Unsafe version offlags
.static byte
nop
(long struct) Unsafe version ofop()
.static void
nop
(long struct, byte value) Unsafe version ofop
.static byte
nresv
(long struct) Unsafe version ofresv()
.static void
nresv
(long struct, byte value) Unsafe version ofresv
.static int
nresv2
(long struct) Unsafe version ofresv2()
.static void
nresv2
(long struct, int value) Unsafe version ofresv2
.byte
op()
op
(byte value) Sets the specified value to theop
field.byte
resv()
resv
(byte value) Sets the specified value to theresv
field.int
resv2()
resv2
(int value) Sets the specified value to theresv2
field.set
(byte op, byte resv, short flags, int resv2) Initializes this struct with the specified values.set
(IOURingProbeOp 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. -
OP
public static final int OPThe struct member offsets. -
RESV
public static final int RESVThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets. -
RESV2
public static final int RESV2The struct member offsets.
-
-
Constructor Details
-
IOURingProbeOp
Creates aIOURingProbeOp
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
-
op
public byte op()- Returns:
- the value of the
op
field.
-
resv
public byte resv()- Returns:
- the value of the
resv
field.
-
flags
public short flags()one or more of:LibIOURing.IO_URING_OP_SUPPORTED
-
resv2
public int resv2()- Returns:
- the value of the
resv2
field.
-
op
Sets the specified value to theop
field. -
resv
Sets the specified value to theresv
field. -
flags
Sets the specified value to theflags()
field. -
resv2
Sets the specified value to theresv2
field. -
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 newIOURingProbeOp
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newIOURingProbeOp
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newIOURingProbeOp
instance allocated withBufferUtils
. -
create
Returns a newIOURingProbeOp
instance for the specified memory address. -
createSafe
-
malloc
Returns a newIOURingProbeOp.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newIOURingProbeOp.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newIOURingProbeOp.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aIOURingProbeOp.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newIOURingProbeOp
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newIOURingProbeOp
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newIOURingProbeOp.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newIOURingProbeOp.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nop
public static byte nop(long struct) Unsafe version ofop()
. -
nresv
public static byte nresv(long struct) Unsafe version ofresv()
. -
nflags
public static short nflags(long struct) Unsafe version offlags()
. -
nresv2
public static int nresv2(long struct) Unsafe version ofresv2()
. -
nop
public static void nop(long struct, byte value) Unsafe version ofop
. -
nresv
public static void nresv(long struct, byte value) Unsafe version ofresv
. -
nflags
public static void nflags(long struct, short value) Unsafe version offlags
. -
nresv2
public static void nresv2(long struct, int value) Unsafe version ofresv2
.
-