Package org.lwjgl.system.linux.liburing
Class IOURingZCRXOffsets
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct io_uring_zcrx_offsets {
__u32 head;
__u32 tail;
__u32 rqes;
__u32 __resv2;
__u64 __resv[2];
}
-
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 member offsets.static final int
The struct member offsets.static 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 size in bytes.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionIOURingZCRXOffsets
(ByteBuffer container) Creates aIOURingZCRXOffsets
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic IOURingZCRXOffsets
calloc()
Returns a newIOURingZCRXOffsets
instance allocated withmemCalloc
.static IOURingZCRXOffsets.Buffer
calloc
(int capacity) Returns a newIOURingZCRXOffsets.Buffer
instance allocated withmemCalloc
.static IOURingZCRXOffsets.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newIOURingZCRXOffsets.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOURingZCRXOffsets
calloc
(MemoryStack stack) Returns a newIOURingZCRXOffsets
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOURingZCRXOffsets
create()
Returns a newIOURingZCRXOffsets
instance allocated withBufferUtils
.static IOURingZCRXOffsets.Buffer
create
(int capacity) Returns a newIOURingZCRXOffsets.Buffer
instance allocated withBufferUtils
.static IOURingZCRXOffsets
create
(long address) Returns a newIOURingZCRXOffsets
instance for the specified memory address.static IOURingZCRXOffsets.Buffer
create
(long address, int capacity) Create aIOURingZCRXOffsets.Buffer
instance at the specified memory.static @Nullable IOURingZCRXOffsets
createSafe
(long address) static @Nullable IOURingZCRXOffsets.Buffer
createSafe
(long address, int capacity) int
head()
head
(int value) Sets the specified value to thehead
field.static IOURingZCRXOffsets
malloc()
Returns a newIOURingZCRXOffsets
instance allocated withmemAlloc
.static IOURingZCRXOffsets.Buffer
malloc
(int capacity) Returns a newIOURingZCRXOffsets.Buffer
instance allocated withmemAlloc
.static IOURingZCRXOffsets.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newIOURingZCRXOffsets.Buffer
instance allocated on the specifiedMemoryStack
.static IOURingZCRXOffsets
malloc
(MemoryStack stack) Returns a newIOURingZCRXOffsets
instance allocated on the specifiedMemoryStack
.static LongBuffer
n__resv
(long struct) static long
n__resv
(long struct, int index) static void
n__resv
(long struct, int index, long value) static void
n__resv
(long struct, LongBuffer value) static int
n__resv2
(long struct) static void
n__resv2
(long struct, int value) static int
nhead
(long struct) Unsafe version ofhead()
.static void
nhead
(long struct, int value) Unsafe version ofhead
.static int
nrqes
(long struct) Unsafe version ofrqes()
.static void
nrqes
(long struct, int value) Unsafe version ofrqes
.static int
ntail
(long struct) Unsafe version oftail()
.static void
ntail
(long struct, int value) Unsafe version oftail
.int
rqes()
rqes
(int value) Sets the specified value to therqes
field.set
(int head, int tail, int rqes) Initializes this struct with the specified values.set
(IOURingZCRXOffsets src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
tail()
tail
(int value) Sets the specified value to thetail
field.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. -
HEAD
public static final int HEADThe struct member offsets. -
TAIL
public static final int TAILThe struct member offsets. -
RQES
public static final int RQESThe struct member offsets. -
__RESV2
public static final int __RESV2The struct member offsets. -
__RESV
public static final int __RESVThe struct member offsets.
-
-
Constructor Details
-
IOURingZCRXOffsets
Creates aIOURingZCRXOffsets
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<IOURingZCRXOffsets>
-
head
public int head()- Returns:
- the value of the
head
field.
-
tail
public int tail()- Returns:
- the value of the
tail
field.
-
rqes
public int rqes()- Returns:
- the value of the
rqes
field.
-
head
Sets the specified value to thehead
field. -
tail
Sets the specified value to thetail
field. -
rqes
Sets the specified value to therqes
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 newIOURingZCRXOffsets
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newIOURingZCRXOffsets
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newIOURingZCRXOffsets
instance allocated withBufferUtils
. -
create
Returns a newIOURingZCRXOffsets
instance for the specified memory address. -
createSafe
-
malloc
Returns a newIOURingZCRXOffsets.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newIOURingZCRXOffsets.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newIOURingZCRXOffsets.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aIOURingZCRXOffsets.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newIOURingZCRXOffsets
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newIOURingZCRXOffsets
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newIOURingZCRXOffsets.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newIOURingZCRXOffsets.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nhead
public static int nhead(long struct) Unsafe version ofhead()
. -
ntail
public static int ntail(long struct) Unsafe version oftail()
. -
nrqes
public static int nrqes(long struct) Unsafe version ofrqes()
. -
n__resv2
public static int n__resv2(long struct) -
n__resv
-
n__resv
public static long n__resv(long struct, int index) -
nhead
public static void nhead(long struct, int value) Unsafe version ofhead
. -
ntail
public static void ntail(long struct, int value) Unsafe version oftail
. -
nrqes
public static void nrqes(long struct, int value) Unsafe version ofrqes
. -
n__resv2
public static void n__resv2(long struct, int value) -
n__resv
-
n__resv
public static void n__resv(long struct, int index, long value)
-