Package org.lwjgl.system.linux.liburing
Class IOURingCQE
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct io_uring_cqe {
__u64 user_data;
__s32 res;
__u32 flags;
__u64 big_cqe[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 size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionIOURingCQE(ByteBuffer container) Creates aIOURingCQEinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionbig_cqe()longbig_cqe(int index) big_cqe(int index, long value) Sets the specified value at the specified index of thebig_cqefield.big_cqe(LongBuffer value) Copies the specifiedLongBufferto thebig_cqefield.static IOURingCQEcalloc()Returns a newIOURingCQEinstance allocated withmemCalloc.static IOURingCQE.Buffercalloc(int capacity) Returns a newIOURingCQE.Bufferinstance allocated withmemCalloc.static IOURingCQE.Buffercalloc(int capacity, MemoryStack stack) Returns a newIOURingCQE.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingCQEcalloc(MemoryStack stack) Returns a newIOURingCQEinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingCQEcreate()Returns a newIOURingCQEinstance allocated withBufferUtils.static IOURingCQE.Buffercreate(int capacity) Returns a newIOURingCQE.Bufferinstance allocated withBufferUtils.static IOURingCQEcreate(long address) Returns a newIOURingCQEinstance for the specified memory address.static IOURingCQE.Buffercreate(long address, int capacity) Create aIOURingCQE.Bufferinstance at the specified memory.static @Nullable IOURingCQEcreateSafe(long address) static @Nullable IOURingCQE.BuffercreateSafe(long address, int capacity) intflags()flags(int value) Sets the specified value to theflagsfield.static IOURingCQEmalloc()Returns a newIOURingCQEinstance allocated withmemAlloc.static IOURingCQE.Buffermalloc(int capacity) Returns a newIOURingCQE.Bufferinstance allocated withmemAlloc.static IOURingCQE.Buffermalloc(int capacity, MemoryStack stack) Returns a newIOURingCQE.Bufferinstance allocated on the specifiedMemoryStack.static IOURingCQEmalloc(MemoryStack stack) Returns a newIOURingCQEinstance allocated on the specifiedMemoryStack.static LongBuffernbig_cqe(long struct) Unsafe version ofbig_cqe().static longnbig_cqe(long struct, int index) Unsafe version ofbig_cqe.static voidnbig_cqe(long struct, int index, long value) Unsafe version ofbig_cqe.static voidnbig_cqe(long struct, LongBuffer value) Unsafe version ofbig_cqe.static intnflags(long struct) Unsafe version offlags().static voidnflags(long struct, int value) Unsafe version offlags.static intnres(long struct) Unsafe version ofres().static voidnres(long struct, int value) Unsafe version ofres.static longnuser_data(long struct) Unsafe version ofuser_data().static voidnuser_data(long struct, long value) Unsafe version ofuser_data.intres()res(int value) Sets the specified value to theresfield.set(long user_data, int res, int flags, LongBuffer big_cqe) Initializes this struct with the specified values.set(IOURingCQE src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).longuser_data(long value) Sets the specified value to theuser_datafield.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. -
USER_DATA
public static final int USER_DATAThe struct member offsets. -
RES
public static final int RESThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets. -
BIG_CQE
public static final int BIG_CQEThe struct member offsets.
-
-
Constructor Details
-
IOURingCQE
Creates aIOURingCQEinstance 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<IOURingCQE>
-
user_data
public long user_data()- Returns:
- the value of the
user_datafield.
-
res
public int res()- Returns:
- the value of the
resfield.
-
flags
public int flags()- Returns:
- the value of the
flagsfield.
-
big_cqe
- Returns:
- a
LongBufferview of thebig_cqefield.
-
big_cqe
public long big_cqe(int index) - Returns:
- the value at the specified index of the
big_cqefield.
-
user_data
Sets the specified value to theuser_datafield. -
res
Sets the specified value to theresfield. -
flags
Sets the specified value to theflagsfield. -
big_cqe
Copies the specifiedLongBufferto thebig_cqefield. -
big_cqe
Sets the specified value at the specified index of thebig_cqefield. -
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 newIOURingCQEinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newIOURingCQEinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newIOURingCQEinstance allocated withBufferUtils. -
create
Returns a newIOURingCQEinstance for the specified memory address. -
createSafe
-
malloc
Returns a newIOURingCQE.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newIOURingCQE.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newIOURingCQE.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aIOURingCQE.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newIOURingCQEinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newIOURingCQEinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newIOURingCQE.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newIOURingCQE.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nuser_data
public static long nuser_data(long struct) Unsafe version ofuser_data(). -
nres
public static int nres(long struct) Unsafe version ofres(). -
nflags
public static int nflags(long struct) Unsafe version offlags(). -
nbig_cqe
Unsafe version ofbig_cqe(). -
nbig_cqe
public static long nbig_cqe(long struct, int index) Unsafe version ofbig_cqe. -
nuser_data
public static void nuser_data(long struct, long value) Unsafe version ofuser_data. -
nres
public static void nres(long struct, int value) Unsafe version ofres. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags. -
nbig_cqe
Unsafe version ofbig_cqe. -
nbig_cqe
public static void nbig_cqe(long struct, int index, long value) Unsafe version ofbig_cqe.
-