Package org.lwjgl.system.linux.liburing
Class IOURingZCRXRQ
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct io_uring_zcrx_rq {
__u32 * khead;
__u32 * ktail;
__u32 rq_tail;
unsigned ring_entries;
struct io_uring_zcrx_rqe * rqes;
void * ring_ptr;
}-
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 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
ConstructorsConstructorDescriptionIOURingZCRXRQ(ByteBuffer container) Creates aIOURingZCRXRQinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic IOURingZCRXRQcalloc()Returns a newIOURingZCRXRQinstance allocated withmemCalloc.static IOURingZCRXRQ.Buffercalloc(int capacity) Returns a newIOURingZCRXRQ.Bufferinstance allocated withmemCalloc.static IOURingZCRXRQ.Buffercalloc(int capacity, MemoryStack stack) Returns a newIOURingZCRXRQ.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingZCRXRQcalloc(MemoryStack stack) Returns a newIOURingZCRXRQinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingZCRXRQcreate()Returns a newIOURingZCRXRQinstance allocated withBufferUtils.static IOURingZCRXRQ.Buffercreate(int capacity) Returns a newIOURingZCRXRQ.Bufferinstance allocated withBufferUtils.static IOURingZCRXRQcreate(long address) Returns a newIOURingZCRXRQinstance for the specified memory address.static IOURingZCRXRQ.Buffercreate(long address, int capacity) Create aIOURingZCRXRQ.Bufferinstance at the specified memory.static @Nullable IOURingZCRXRQcreateSafe(long address) static @Nullable IOURingZCRXRQ.BuffercreateSafe(long address, int capacity) khead(int capacity) Sets the address of the specifiedIntBufferto thekheadfield.ktail(int capacity) Sets the address of the specifiedIntBufferto thektailfield.static IOURingZCRXRQmalloc()Returns a newIOURingZCRXRQinstance allocated withmemAlloc.static IOURingZCRXRQ.Buffermalloc(int capacity) Returns a newIOURingZCRXRQ.Bufferinstance allocated withmemAlloc.static IOURingZCRXRQ.Buffermalloc(int capacity, MemoryStack stack) Returns a newIOURingZCRXRQ.Bufferinstance allocated on the specifiedMemoryStack.static IOURingZCRXRQmalloc(MemoryStack stack) Returns a newIOURingZCRXRQinstance allocated on the specifiedMemoryStack.static IntBuffernkhead(long struct, int capacity) Unsafe version ofkhead.static voidUnsafe version ofkhead.static IntBuffernktail(long struct, int capacity) Unsafe version ofktail.static voidUnsafe version ofktail.static intnring_entries(long struct) Unsafe version ofring_entries().static voidnring_entries(long struct, int value) Unsafe version ofring_entries.static longnring_ptr(long struct) Unsafe version ofring_ptr().static voidnring_ptr(long struct, long value) Unsafe version ofring_ptr.static intnrq_tail(long struct) Unsafe version ofrq_tail().static voidnrq_tail(long struct, int value) Unsafe version ofrq_tail.static IOURingZCRXRQEnrqes(long struct) Unsafe version ofrqes().static voidnrqes(long struct, IOURingZCRXRQE value) Unsafe version ofrqes.intring_entries(int value) Sets the specified value to thering_entriesfield.longring_ptr()ring_ptr(long value) Sets the specified value to thering_ptrfield.intrq_tail()rq_tail(int value) Sets the specified value to therq_tailfield.rqes()rqes(IOURingZCRXRQE value) Sets the address of the specifiedIOURingZCRXRQEto therqesfield.set(IntBuffer khead, IntBuffer ktail, int rq_tail, int ring_entries, IOURingZCRXRQE rqes, long ring_ptr) Initializes this struct with the specified values.set(IOURingZCRXRQ src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).static voidvalidate(long struct) Validates pointer members that should not beNULL.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. -
KHEAD
public static final int KHEADThe struct member offsets. -
KTAIL
public static final int KTAILThe struct member offsets. -
RQ_TAIL
public static final int RQ_TAILThe struct member offsets. -
RING_ENTRIES
public static final int RING_ENTRIESThe struct member offsets. -
RQES
public static final int RQESThe struct member offsets. -
RING_PTR
public static final int RING_PTRThe struct member offsets.
-
-
Constructor Details
-
IOURingZCRXRQ
Creates aIOURingZCRXRQinstance 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<IOURingZCRXRQ>
-
khead
- Returns:
- a
IntBufferview of the data pointed to by thekheadfield.
-
ktail
- Returns:
- a
IntBufferview of the data pointed to by thektailfield.
-
rq_tail
public int rq_tail()- Returns:
- the value of the
rq_tailfield.
-
ring_entries
public int ring_entries()- Returns:
- the value of the
ring_entriesfield.
-
rqes
- Returns:
- a
IOURingZCRXRQEview of the struct pointed to by therqesfield.
-
ring_ptr
public long ring_ptr()- Returns:
- the value of the
ring_ptrfield.
-
khead
Sets the address of the specifiedIntBufferto thekheadfield. -
ktail
Sets the address of the specifiedIntBufferto thektailfield. -
rq_tail
Sets the specified value to therq_tailfield. -
ring_entries
Sets the specified value to thering_entriesfield. -
rqes
Sets the address of the specifiedIOURingZCRXRQEto therqesfield. -
ring_ptr
Sets the specified value to thering_ptrfield. -
set
public IOURingZCRXRQ set(IntBuffer khead, IntBuffer ktail, int rq_tail, int ring_entries, IOURingZCRXRQE rqes, long ring_ptr) 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 newIOURingZCRXRQinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newIOURingZCRXRQinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newIOURingZCRXRQinstance allocated withBufferUtils. -
create
Returns a newIOURingZCRXRQinstance for the specified memory address. -
createSafe
-
malloc
Returns a newIOURingZCRXRQ.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newIOURingZCRXRQ.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newIOURingZCRXRQ.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aIOURingZCRXRQ.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newIOURingZCRXRQinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newIOURingZCRXRQinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newIOURingZCRXRQ.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newIOURingZCRXRQ.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nkhead
Unsafe version ofkhead. -
nktail
Unsafe version ofktail. -
nrq_tail
public static int nrq_tail(long struct) Unsafe version ofrq_tail(). -
nring_entries
public static int nring_entries(long struct) Unsafe version ofring_entries(). -
nrqes
Unsafe version ofrqes(). -
nring_ptr
public static long nring_ptr(long struct) Unsafe version ofring_ptr(). -
nkhead
Unsafe version ofkhead. -
nktail
Unsafe version ofktail. -
nrq_tail
public static void nrq_tail(long struct, int value) Unsafe version ofrq_tail. -
nring_entries
public static void nring_entries(long struct, int value) Unsafe version ofring_entries. -
nrqes
Unsafe version ofrqes. -
nring_ptr
public static void nring_ptr(long struct, long value) Unsafe version ofring_ptr. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-