Package org.lwjgl.system.linux.liburing
Class IOCQRingOffsets
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.system.linux.liburing.IOCQRingOffsets
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class IOCQRingOffsets extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct io_cqring_offsets { __u32 head; __u32 tail; __u32 ring_mask; __u32 ring_entries; __u32 overflow; __u32 cqes; __u32 flags; __u32 resv1; __u64 resv2; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIOCQRingOffsets.BufferAn array ofIOCQRingOffsetsstructs.
-
Constructor Summary
Constructors Constructor Description IOCQRingOffsets(java.nio.ByteBuffer container)Creates aIOCQRingOffsetsinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IOCQRingOffsetscalloc()Returns a newIOCQRingOffsetsinstance allocated withmemCalloc.static IOCQRingOffsets.Buffercalloc(int capacity)Returns a newIOCQRingOffsets.Bufferinstance allocated withmemCalloc.static IOCQRingOffsets.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newIOCQRingOffsets.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOCQRingOffsetscalloc(org.lwjgl.system.MemoryStack stack)Returns a newIOCQRingOffsetsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcqes()IOCQRingOffsetscqes(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 IOCQRingOffsetscreateSafe(long address)static IOCQRingOffsets.BuffercreateSafe(long address, int capacity)intflags()IOCQRingOffsetsflags(int value)Sets the specified value to theflagsfield.inthead()IOCQRingOffsetshead(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, org.lwjgl.system.MemoryStack stack)Returns a newIOCQRingOffsets.Bufferinstance allocated on the specifiedMemoryStack.static IOCQRingOffsetsmalloc(org.lwjgl.system.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 longnresv2(long struct)static voidnresv2(long struct, long 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.intoverflow()IOCQRingOffsetsoverflow(int value)Sets the specified value to theoverflowfield.intring_entries()IOCQRingOffsetsring_entries(int value)Sets the specified value to thering_entriesfield.intring_mask()IOCQRingOffsetsring_mask(int value)Sets the specified value to thering_maskfield.IOCQRingOffsetsset(int head, int tail, int ring_mask, int ring_entries, int overflow, int cqes, int flags)Initializes this struct with the specified values.IOCQRingOffsetsset(IOCQRingOffsets src)Copies the specified struct data to this struct.intsizeof()inttail()IOCQRingOffsetstail(int value)Sets the specified value to thetailfield.
-
-
-
Constructor Detail
-
IOCQRingOffsets
public IOCQRingOffsets(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
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.
-
head
public IOCQRingOffsets head(int value)
Sets the specified value to theheadfield.
-
tail
public IOCQRingOffsets tail(int value)
Sets the specified value to thetailfield.
-
ring_mask
public IOCQRingOffsets ring_mask(int value)
Sets the specified value to thering_maskfield.
-
ring_entries
public IOCQRingOffsets ring_entries(int value)
Sets the specified value to thering_entriesfield.
-
overflow
public IOCQRingOffsets overflow(int value)
Sets the specified value to theoverflowfield.
-
cqes
public IOCQRingOffsets cqes(int value)
Sets the specified value to thecqesfield.
-
flags
public IOCQRingOffsets flags(int value)
Sets the specified value to theflagsfield.
-
set
public IOCQRingOffsets set(int head, int tail, int ring_mask, int ring_entries, int overflow, int cqes, int flags)
Initializes this struct with the specified values.
-
set
public IOCQRingOffsets set(IOCQRingOffsets src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static IOCQRingOffsets malloc()
Returns a newIOCQRingOffsetsinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static IOCQRingOffsets calloc()
Returns a newIOCQRingOffsetsinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static IOCQRingOffsets create()
Returns a newIOCQRingOffsetsinstance allocated withBufferUtils.
-
create
public static IOCQRingOffsets create(long address)
Returns a newIOCQRingOffsetsinstance for the specified memory address.
-
createSafe
@Nullable public static IOCQRingOffsets createSafe(long address)
-
malloc
public static IOCQRingOffsets.Buffer malloc(int capacity)
Returns a newIOCQRingOffsets.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static IOCQRingOffsets.Buffer calloc(int capacity)
Returns a newIOCQRingOffsets.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static IOCQRingOffsets.Buffer create(int capacity)
Returns a newIOCQRingOffsets.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static IOCQRingOffsets.Buffer create(long address, int capacity)
Create aIOCQRingOffsets.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static IOCQRingOffsets.Buffer createSafe(long address, int capacity)
-
malloc
public static IOCQRingOffsets malloc(org.lwjgl.system.MemoryStack stack)
Returns a newIOCQRingOffsetsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static IOCQRingOffsets calloc(org.lwjgl.system.MemoryStack stack)
Returns a newIOCQRingOffsetsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static IOCQRingOffsets.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newIOCQRingOffsets.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static IOCQRingOffsets.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newIOCQRingOffsets.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
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)
-
nresv2
public static long nresv2(long struct)
-
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)
-
nresv2
public static void nresv2(long struct, long value)
-
-