Package org.lwjgl.system.linux.liburing
Class IOURingProbeOp
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
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
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
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, MemoryStack stack) Returns a newIOURingProbeOp.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOURingProbeOp
calloc
(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 @Nullable IOURingProbeOp
createSafe
(long address) static @Nullable IOURingProbeOp.Buffer
createSafe
(long address, int capacity) short
flags()
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, MemoryStack stack) Returns a newIOURingProbeOp.Buffer
instance allocated on the specifiedMemoryStack
.static IOURingProbeOp
malloc
(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) static void
nresv
(long struct, byte value) static int
nresv2
(long struct) static void
nresv2
(long struct, int value) byte
op()
op
(byte value) Sets the specified value to theop
field.set
(byte op, short flags) Initializes this struct with the specified values.set
(IOURingProbeOp src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.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()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<IOURingProbeOp>
-
op
public byte op()- Returns:
- the value of the
op
field.
-
flags
public short flags()- Returns:
- the value of the
flags
field.
-
op
Sets the specified value to theop
field. -
flags
Sets the specified value to theflags
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) -
nflags
public static short nflags(long struct) Unsafe version offlags()
. -
nresv2
public static int nresv2(long struct) -
nop
public static void nop(long struct, byte value) Unsafe version ofop
. -
nresv
public static void nresv(long struct, byte value) -
nflags
public static void nflags(long struct, short value) Unsafe version offlags
. -
nresv2
public static void nresv2(long struct, int value)
-