Package org.lwjgl.system.linux.liburing
Class IOCQRingOffsets
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct io_cqring_offsets {
__u32 head;
__u32 tail;
__u32 ring_mask;
__u32 ring_entries;
__u32 overflow;
__u32 cqes;
__u32 flags;
__u32 resv1;
__u64 user_addr;
}-
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 member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.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
ConstructorsConstructorDescriptionIOCQRingOffsets(ByteBuffer container) Creates aIOCQRingOffsetsinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic IOCQRingOffsetscalloc()Returns a newIOCQRingOffsetsinstance allocated withmemCalloc.static IOCQRingOffsets.Buffercalloc(int capacity) Returns a newIOCQRingOffsets.Bufferinstance allocated withmemCalloc.static IOCQRingOffsets.Buffercalloc(int capacity, MemoryStack stack) Returns a newIOCQRingOffsets.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOCQRingOffsetscalloc(MemoryStack stack) Returns a newIOCQRingOffsetsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcqes()cqes(int value) Sets the specified value to thecqesfield.static IOCQRingOffsetscreate()Returns a newIOCQRingOffsetsinstance allocated withBufferUtils.static IOCQRingOffsets.Buffercreate(int capacity) Returns a newIOCQRingOffsets.Bufferinstance allocated withBufferUtils.static IOCQRingOffsetscreate(long address) Returns a newIOCQRingOffsetsinstance for the specified memory address.static IOCQRingOffsets.Buffercreate(long address, int capacity) Create aIOCQRingOffsets.Bufferinstance at the specified memory.static @Nullable IOCQRingOffsetscreateSafe(long address) static @Nullable IOCQRingOffsets.BuffercreateSafe(long address, int capacity) intflags()flags(int value) Sets the specified value to theflagsfield.inthead()head(int value) Sets the specified value to theheadfield.static IOCQRingOffsetsmalloc()Returns a newIOCQRingOffsetsinstance allocated withmemAlloc.static IOCQRingOffsets.Buffermalloc(int capacity) Returns a newIOCQRingOffsets.Bufferinstance allocated withmemAlloc.static IOCQRingOffsets.Buffermalloc(int capacity, MemoryStack stack) Returns a newIOCQRingOffsets.Bufferinstance allocated on the specifiedMemoryStack.static IOCQRingOffsetsmalloc(MemoryStack stack) Returns a newIOCQRingOffsetsinstance allocated on the specifiedMemoryStack.static intncqes(long struct) Unsafe version ofcqes().static voidncqes(long struct, int value) Unsafe version ofcqes.static intnflags(long struct) Unsafe version offlags().static voidnflags(long struct, int value) Unsafe version offlags.static intnhead(long struct) Unsafe version ofhead().static voidnhead(long struct, int value) Unsafe version ofhead.static intnoverflow(long struct) Unsafe version ofoverflow().static voidnoverflow(long struct, int value) Unsafe version ofoverflow.static intnresv1(long struct) static voidnresv1(long struct, int value) static intnring_entries(long struct) Unsafe version ofring_entries().static voidnring_entries(long struct, int value) Unsafe version ofring_entries.static intnring_mask(long struct) Unsafe version ofring_mask().static voidnring_mask(long struct, int value) Unsafe version ofring_mask.static intntail(long struct) Unsafe version oftail().static voidntail(long struct, int value) Unsafe version oftail.static longnuser_addr(long struct) Unsafe version ofuser_addr().static voidnuser_addr(long struct, long value) Unsafe version ofuser_addr.intoverflow()overflow(int value) Sets the specified value to theoverflowfield.intring_entries(int value) Sets the specified value to thering_entriesfield.intring_mask(int value) Sets the specified value to thering_maskfield.set(int head, int tail, int ring_mask, int ring_entries, int overflow, int cqes, int flags, long user_addr) Initializes this struct with the specified values.set(IOCQRingOffsets src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).inttail()tail(int value) Sets the specified value to thetailfield.longuser_addr(long value) Sets the specified value to theuser_addrfield.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. -
RING_MASK
public static final int RING_MASKThe struct member offsets. -
RING_ENTRIES
public static final int RING_ENTRIESThe struct member offsets. -
OVERFLOW
public static final int OVERFLOWThe struct member offsets. -
CQES
public static final int CQESThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets. -
RESV1
public static final int RESV1The struct member offsets. -
USER_ADDR
public static final int USER_ADDRThe struct member offsets.
-
-
Constructor Details
-
IOCQRingOffsets
Creates aIOCQRingOffsetsinstance 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<IOCQRingOffsets>
-
head
public int head()- Returns:
- the value of the
headfield.
-
tail
public int tail()- Returns:
- the value of the
tailfield.
-
ring_mask
public int ring_mask()- Returns:
- the value of the
ring_maskfield.
-
ring_entries
public int ring_entries()- Returns:
- the value of the
ring_entriesfield.
-
overflow
public int overflow()- Returns:
- the value of the
overflowfield.
-
cqes
public int cqes()- Returns:
- the value of the
cqesfield.
-
flags
public int flags()- Returns:
- the value of the
flagsfield.
-
user_addr
public long user_addr()- Returns:
- the value of the
user_addrfield.
-
head
Sets the specified value to theheadfield. -
tail
Sets the specified value to thetailfield. -
ring_mask
Sets the specified value to thering_maskfield. -
ring_entries
Sets the specified value to thering_entriesfield. -
overflow
Sets the specified value to theoverflowfield. -
cqes
Sets the specified value to thecqesfield. -
flags
Sets the specified value to theflagsfield. -
user_addr
Sets the specified value to theuser_addrfield. -
set
public IOCQRingOffsets set(int head, int tail, int ring_mask, int ring_entries, int overflow, int cqes, int flags, long user_addr) 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 newIOCQRingOffsetsinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newIOCQRingOffsetsinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newIOCQRingOffsetsinstance allocated withBufferUtils. -
create
Returns a newIOCQRingOffsetsinstance for the specified memory address. -
createSafe
-
malloc
Returns a newIOCQRingOffsets.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newIOCQRingOffsets.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newIOCQRingOffsets.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aIOCQRingOffsets.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newIOCQRingOffsetsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newIOCQRingOffsetsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newIOCQRingOffsets.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newIOCQRingOffsets.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(). -
nring_mask
public static int nring_mask(long struct) Unsafe version ofring_mask(). -
nring_entries
public static int nring_entries(long struct) Unsafe version ofring_entries(). -
noverflow
public static int noverflow(long struct) Unsafe version ofoverflow(). -
ncqes
public static int ncqes(long struct) Unsafe version ofcqes(). -
nflags
public static int nflags(long struct) Unsafe version offlags(). -
nresv1
public static int nresv1(long struct) -
nuser_addr
public static long nuser_addr(long struct) Unsafe version ofuser_addr(). -
nhead
public static void nhead(long struct, int value) Unsafe version ofhead. -
ntail
public static void ntail(long struct, int value) Unsafe version oftail. -
nring_mask
public static void nring_mask(long struct, int value) Unsafe version ofring_mask. -
nring_entries
public static void nring_entries(long struct, int value) Unsafe version ofring_entries. -
noverflow
public static void noverflow(long struct, int value) Unsafe version ofoverflow. -
ncqes
public static void ncqes(long struct, int value) Unsafe version ofcqes. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags. -
nresv1
public static void nresv1(long struct, int value) -
nuser_addr
public static void nuser_addr(long struct, long value) Unsafe version ofuser_addr.
-