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;
{@link IOURingZCRXRQE struct io_uring_zcrx_rqe} * rqes;
void * ring_ptr;
}
-
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 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
ConstructorsConstructorDescriptionIOURingZCRXRQ
(ByteBuffer container) Creates aIOURingZCRXRQ
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic IOURingZCRXRQ
calloc()
Returns a newIOURingZCRXRQ
instance allocated withmemCalloc
.static IOURingZCRXRQ.Buffer
calloc
(int capacity) Returns a newIOURingZCRXRQ.Buffer
instance allocated withmemCalloc
.static IOURingZCRXRQ.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newIOURingZCRXRQ.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOURingZCRXRQ
calloc
(MemoryStack stack) Returns a newIOURingZCRXRQ
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOURingZCRXRQ
create()
Returns a newIOURingZCRXRQ
instance allocated withBufferUtils
.static IOURingZCRXRQ.Buffer
create
(int capacity) Returns a newIOURingZCRXRQ.Buffer
instance allocated withBufferUtils
.static IOURingZCRXRQ
create
(long address) Returns a newIOURingZCRXRQ
instance for the specified memory address.static IOURingZCRXRQ.Buffer
create
(long address, int capacity) Create aIOURingZCRXRQ.Buffer
instance at the specified memory.static @Nullable IOURingZCRXRQ
createSafe
(long address) static @Nullable IOURingZCRXRQ.Buffer
createSafe
(long address, int capacity) khead
(int capacity) Sets the address of the specifiedIntBuffer
to thekhead
field.ktail
(int capacity) Sets the address of the specifiedIntBuffer
to thektail
field.static IOURingZCRXRQ
malloc()
Returns a newIOURingZCRXRQ
instance allocated withmemAlloc
.static IOURingZCRXRQ.Buffer
malloc
(int capacity) Returns a newIOURingZCRXRQ.Buffer
instance allocated withmemAlloc
.static IOURingZCRXRQ.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newIOURingZCRXRQ.Buffer
instance allocated on the specifiedMemoryStack
.static IOURingZCRXRQ
malloc
(MemoryStack stack) Returns a newIOURingZCRXRQ
instance allocated on the specifiedMemoryStack
.static IntBuffer
nkhead
(long struct, int capacity) Unsafe version ofkhead
.static void
Unsafe version ofkhead
.static IntBuffer
nktail
(long struct, int capacity) Unsafe version ofktail
.static void
Unsafe version ofktail
.static int
nring_entries
(long struct) Unsafe version ofring_entries()
.static void
nring_entries
(long struct, int value) Unsafe version ofring_entries
.static long
nring_ptr
(long struct) Unsafe version ofring_ptr()
.static void
nring_ptr
(long struct, long value) Unsafe version ofring_ptr
.static int
nrq_tail
(long struct) Unsafe version ofrq_tail()
.static void
nrq_tail
(long struct, int value) Unsafe version ofrq_tail
.static IOURingZCRXRQE
nrqes
(long struct) Unsafe version ofrqes()
.static void
nrqes
(long struct, IOURingZCRXRQE value) Unsafe version ofrqes
.int
ring_entries
(int value) Sets the specified value to thering_entries
field.long
ring_ptr()
ring_ptr
(long value) Sets the specified value to thering_ptr
field.int
rq_tail()
rq_tail
(int value) Sets the specified value to therq_tail
field.rqes()
rqes
(IOURingZCRXRQE value) Sets the address of the specifiedIOURingZCRXRQE
to therqes
field.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.int
sizeof()
Returnssizeof(struct)
.static void
validate
(long struct) Validates pointer members that should not beNULL
.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. -
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 aIOURingZCRXRQ
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<IOURingZCRXRQ>
-
khead
- Returns:
- a
IntBuffer
view of the data pointed to by thekhead
field.
-
ktail
- Returns:
- a
IntBuffer
view of the data pointed to by thektail
field.
-
rq_tail
public int rq_tail()- Returns:
- the value of the
rq_tail
field.
-
ring_entries
public int ring_entries()- Returns:
- the value of the
ring_entries
field.
-
rqes
- Returns:
- a
IOURingZCRXRQE
view of the struct pointed to by therqes
field.
-
ring_ptr
public long ring_ptr()- Returns:
- the value of the
ring_ptr
field.
-
khead
Sets the address of the specifiedIntBuffer
to thekhead
field. -
ktail
Sets the address of the specifiedIntBuffer
to thektail
field. -
rq_tail
Sets the specified value to therq_tail
field. -
ring_entries
Sets the specified value to thering_entries
field. -
rqes
Sets the address of the specifiedIOURingZCRXRQE
to therqes
field. -
ring_ptr
Sets the specified value to thering_ptr
field. -
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 newIOURingZCRXRQ
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newIOURingZCRXRQ
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newIOURingZCRXRQ
instance allocated withBufferUtils
. -
create
Returns a newIOURingZCRXRQ
instance for the specified memory address. -
createSafe
-
malloc
Returns a newIOURingZCRXRQ.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newIOURingZCRXRQ.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newIOURingZCRXRQ.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aIOURingZCRXRQ.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newIOURingZCRXRQ
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newIOURingZCRXRQ
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newIOURingZCRXRQ.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newIOURingZCRXRQ.Buffer
instance allocated on the specifiedMemoryStack
and 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
-