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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct alignment in bytes.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
ConstructorsConstructorDescriptionIOURingZCRXOffsets(ByteBuffer container) Creates aIOURingZCRXOffsetsinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic IOURingZCRXOffsetscalloc()Returns a newIOURingZCRXOffsetsinstance allocated withmemCalloc.static IOURingZCRXOffsets.Buffercalloc(int capacity) Returns a newIOURingZCRXOffsets.Bufferinstance allocated withmemCalloc.static IOURingZCRXOffsets.Buffercalloc(int capacity, MemoryStack stack) Returns a newIOURingZCRXOffsets.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingZCRXOffsetscalloc(MemoryStack stack) Returns a newIOURingZCRXOffsetsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingZCRXOffsetscreate()Returns a newIOURingZCRXOffsetsinstance allocated withBufferUtils.static IOURingZCRXOffsets.Buffercreate(int capacity) Returns a newIOURingZCRXOffsets.Bufferinstance allocated withBufferUtils.static IOURingZCRXOffsetscreate(long address) Returns a newIOURingZCRXOffsetsinstance for the specified memory address.static IOURingZCRXOffsets.Buffercreate(long address, int capacity) Create aIOURingZCRXOffsets.Bufferinstance at the specified memory.static @Nullable IOURingZCRXOffsetscreateSafe(long address) static @Nullable IOURingZCRXOffsets.BuffercreateSafe(long address, int capacity) inthead()head(int value) Sets the specified value to theheadfield.static IOURingZCRXOffsetsmalloc()Returns a newIOURingZCRXOffsetsinstance allocated withmemAlloc.static IOURingZCRXOffsets.Buffermalloc(int capacity) Returns a newIOURingZCRXOffsets.Bufferinstance allocated withmemAlloc.static IOURingZCRXOffsets.Buffermalloc(int capacity, MemoryStack stack) Returns a newIOURingZCRXOffsets.Bufferinstance allocated on the specifiedMemoryStack.static IOURingZCRXOffsetsmalloc(MemoryStack stack) Returns a newIOURingZCRXOffsetsinstance allocated on the specifiedMemoryStack.static LongBuffern__resv(long struct) static longn__resv(long struct, int index) static voidn__resv(long struct, int index, long value) static voidn__resv(long struct, LongBuffer value) static intn__resv2(long struct) static voidn__resv2(long struct, int value) static intnhead(long struct) Unsafe version ofhead().static voidnhead(long struct, int value) Unsafe version ofhead.static intnrqes(long struct) Unsafe version ofrqes().static voidnrqes(long struct, int value) Unsafe version ofrqes.static intntail(long struct) Unsafe version oftail().static voidntail(long struct, int value) Unsafe version oftail.intrqes()rqes(int value) Sets the specified value to therqesfield.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.intsizeof()Returnssizeof(struct).inttail()tail(int value) Sets the specified value to thetailfield.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. -
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 aIOURingZCRXOffsetsinstance 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<IOURingZCRXOffsets>
-
head
public int head()- Returns:
- the value of the
headfield.
-
tail
public int tail()- Returns:
- the value of the
tailfield.
-
rqes
public int rqes()- Returns:
- the value of the
rqesfield.
-
head
Sets the specified value to theheadfield. -
tail
Sets the specified value to thetailfield. -
rqes
Sets the specified value to therqesfield. -
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 newIOURingZCRXOffsetsinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newIOURingZCRXOffsetsinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newIOURingZCRXOffsetsinstance allocated withBufferUtils. -
create
Returns a newIOURingZCRXOffsetsinstance for the specified memory address. -
createSafe
-
malloc
Returns a newIOURingZCRXOffsets.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newIOURingZCRXOffsets.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newIOURingZCRXOffsets.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aIOURingZCRXOffsets.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newIOURingZCRXOffsetsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newIOURingZCRXOffsetsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newIOURingZCRXOffsets.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newIOURingZCRXOffsets.Bufferinstance allocated on the specifiedMemoryStackand 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)
-