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.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 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 aIOURingProbeOpinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic IOURingProbeOpcalloc()Returns a newIOURingProbeOpinstance allocated withmemCalloc.static IOURingProbeOp.Buffercalloc(int capacity) Returns a newIOURingProbeOp.Bufferinstance allocated withmemCalloc.static IOURingProbeOp.Buffercalloc(int capacity, MemoryStack stack) Returns a newIOURingProbeOp.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingProbeOpcalloc(MemoryStack stack) Returns a newIOURingProbeOpinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingProbeOpcreate()Returns a newIOURingProbeOpinstance allocated withBufferUtils.static IOURingProbeOp.Buffercreate(int capacity) Returns a newIOURingProbeOp.Bufferinstance allocated withBufferUtils.static IOURingProbeOpcreate(long address) Returns a newIOURingProbeOpinstance for the specified memory address.static IOURingProbeOp.Buffercreate(long address, int capacity) Create aIOURingProbeOp.Bufferinstance at the specified memory.static @Nullable IOURingProbeOpcreateSafe(long address) static @Nullable IOURingProbeOp.BuffercreateSafe(long address, int capacity) shortflags()flags(short value) Sets the specified value to theflagsfield.static IOURingProbeOpmalloc()Returns a newIOURingProbeOpinstance allocated withmemAlloc.static IOURingProbeOp.Buffermalloc(int capacity) Returns a newIOURingProbeOp.Bufferinstance allocated withmemAlloc.static IOURingProbeOp.Buffermalloc(int capacity, MemoryStack stack) Returns a newIOURingProbeOp.Bufferinstance allocated on the specifiedMemoryStack.static IOURingProbeOpmalloc(MemoryStack stack) Returns a newIOURingProbeOpinstance allocated on the specifiedMemoryStack.static shortnflags(long struct) Unsafe version offlags().static voidnflags(long struct, short value) Unsafe version offlags.static bytenop(long struct) Unsafe version ofop().static voidnop(long struct, byte value) Unsafe version ofop.static bytenresv(long struct) static voidnresv(long struct, byte value) static intnresv2(long struct) static voidnresv2(long struct, int value) byteop()op(byte value) Sets the specified value to theopfield.set(byte op, short flags) Initializes this struct with the specified values.set(IOURingProbeOp 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. -
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 aIOURingProbeOpinstance 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<IOURingProbeOp>
-
op
public byte op()- Returns:
- the value of the
opfield.
-
flags
public short flags()- Returns:
- the value of the
flagsfield.
-
op
Sets the specified value to theopfield. -
flags
Sets the specified value to theflagsfield. -
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 newIOURingProbeOpinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newIOURingProbeOpinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newIOURingProbeOpinstance allocated withBufferUtils. -
create
Returns a newIOURingProbeOpinstance for the specified memory address. -
createSafe
-
malloc
Returns a newIOURingProbeOp.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newIOURingProbeOp.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newIOURingProbeOp.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aIOURingProbeOp.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newIOURingProbeOpinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newIOURingProbeOpinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newIOURingProbeOp.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newIOURingProbeOp.Bufferinstance allocated on the specifiedMemoryStackand 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)
-