Package org.lwjgl.system.linux.liburing
Class IOSQRingOffsets
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct io_sqring_offsets {
__u32 head;
__u32 tail;
__u32 ring_mask;
__u32 ring_entries;
__u32 flags;
__u32 dropped;
__u32 array;
__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
ConstructorsConstructorDescriptionIOSQRingOffsets(ByteBuffer container) Creates aIOSQRingOffsetsinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintarray()array(int value) Sets the specified value to thearrayfield.static IOSQRingOffsetscalloc()Returns a newIOSQRingOffsetsinstance allocated withmemCalloc.static IOSQRingOffsets.Buffercalloc(int capacity) Returns a newIOSQRingOffsets.Bufferinstance allocated withmemCalloc.static IOSQRingOffsets.Buffercalloc(int capacity, MemoryStack stack) Returns a newIOSQRingOffsets.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOSQRingOffsetscalloc(MemoryStack stack) Returns a newIOSQRingOffsetsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOSQRingOffsetscreate()Returns a newIOSQRingOffsetsinstance allocated withBufferUtils.static IOSQRingOffsets.Buffercreate(int capacity) Returns a newIOSQRingOffsets.Bufferinstance allocated withBufferUtils.static IOSQRingOffsetscreate(long address) Returns a newIOSQRingOffsetsinstance for the specified memory address.static IOSQRingOffsets.Buffercreate(long address, int capacity) Create aIOSQRingOffsets.Bufferinstance at the specified memory.static @Nullable IOSQRingOffsetscreateSafe(long address) static @Nullable IOSQRingOffsets.BuffercreateSafe(long address, int capacity) intdropped()dropped(int value) Sets the specified value to thedroppedfield.intflags()flags(int value) Sets the specified value to theflagsfield.inthead()head(int value) Sets the specified value to theheadfield.static IOSQRingOffsetsmalloc()Returns a newIOSQRingOffsetsinstance allocated withmemAlloc.static IOSQRingOffsets.Buffermalloc(int capacity) Returns a newIOSQRingOffsets.Bufferinstance allocated withmemAlloc.static IOSQRingOffsets.Buffermalloc(int capacity, MemoryStack stack) Returns a newIOSQRingOffsets.Bufferinstance allocated on the specifiedMemoryStack.static IOSQRingOffsetsmalloc(MemoryStack stack) Returns a newIOSQRingOffsetsinstance allocated on the specifiedMemoryStack.static intnarray(long struct) Unsafe version ofarray().static voidnarray(long struct, int value) Unsafe version ofarray.static intndropped(long struct) Unsafe version ofdropped().static voidndropped(long struct, int value) Unsafe version ofdropped.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 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.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 flags, int dropped, int array, long user_addr) Initializes this struct with the specified values.set(IOSQRingOffsets 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. -
FLAGS
public static final int FLAGSThe struct member offsets. -
DROPPED
public static final int DROPPEDThe struct member offsets. -
ARRAY
public static final int ARRAYThe 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
-
IOSQRingOffsets
Creates aIOSQRingOffsetsinstance 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<IOSQRingOffsets>
-
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.
-
flags
public int flags()- Returns:
- the value of the
flagsfield.
-
dropped
public int dropped()- Returns:
- the value of the
droppedfield.
-
array
public int array()- Returns:
- the value of the
arrayfield.
-
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. -
flags
Sets the specified value to theflagsfield. -
dropped
Sets the specified value to thedroppedfield. -
array
Sets the specified value to thearrayfield. -
user_addr
Sets the specified value to theuser_addrfield. -
set
public IOSQRingOffsets set(int head, int tail, int ring_mask, int ring_entries, int flags, int dropped, int array, 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 newIOSQRingOffsetsinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newIOSQRingOffsetsinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newIOSQRingOffsetsinstance allocated withBufferUtils. -
create
Returns a newIOSQRingOffsetsinstance for the specified memory address. -
createSafe
-
malloc
Returns a newIOSQRingOffsets.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newIOSQRingOffsets.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newIOSQRingOffsets.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aIOSQRingOffsets.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newIOSQRingOffsetsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newIOSQRingOffsetsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newIOSQRingOffsets.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newIOSQRingOffsets.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(). -
nflags
public static int nflags(long struct) Unsafe version offlags(). -
ndropped
public static int ndropped(long struct) Unsafe version ofdropped(). -
narray
public static int narray(long struct) Unsafe version ofarray(). -
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. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags. -
ndropped
public static void ndropped(long struct, int value) Unsafe version ofdropped. -
narray
public static void narray(long struct, int value) Unsafe version ofarray. -
nresv1
public static void nresv1(long struct, int value) -
nuser_addr
public static void nuser_addr(long struct, long value) Unsafe version ofuser_addr.
-