Package org.lwjgl.system.linux.liburing
Class IOURingSQ
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.system.linux.liburing.IOURingSQ
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class IOURingSQ extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct io_uring_sq { unsigned * khead; unsigned * ktail; unsigned * kring_mask; unsigned * kring_entries; unsigned * kflags; unsigned * kdropped; unsigned * array;struct io_uring_sqe* sqes; unsigned sqe_head; unsigned sqe_tail; size_t ring_sz; void * ring_ptr; unsigned pad[4]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIOURingSQ.BufferAn array ofIOURingSQstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intARRAY
KDROPPED
KFLAGS
KHEAD
KRING_ENTRIES
KRING_MASK
KTAIL
PAD
RING_PTR
RING_SZThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSQE_HEAD
SQE_TAIL
SQESThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description IOURingSQ(java.nio.ByteBuffer container)Creates aIOURingSQinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.IntBufferarray(int capacity)IOURingSQarray(java.nio.IntBuffer value)Sets the address of the specifiedIntBufferto thearrayfield.static IOURingSQcalloc()Returns a newIOURingSQinstance allocated withmemCalloc.static IOURingSQ.Buffercalloc(int capacity)Returns a newIOURingSQ.Bufferinstance allocated withmemCalloc.static IOURingSQ.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newIOURingSQ.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingSQcalloc(org.lwjgl.system.MemoryStack stack)Returns a newIOURingSQinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingSQcreate()Returns a newIOURingSQinstance allocated withBufferUtils.static IOURingSQ.Buffercreate(int capacity)Returns a newIOURingSQ.Bufferinstance allocated withBufferUtils.static IOURingSQcreate(long address)Returns a newIOURingSQinstance for the specified memory address.static IOURingSQ.Buffercreate(long address, int capacity)Create aIOURingSQ.Bufferinstance at the specified memory.static IOURingSQcreateSafe(long address)static IOURingSQ.BuffercreateSafe(long address, int capacity)java.nio.IntBufferkdropped(int capacity)IOURingSQkdropped(java.nio.IntBuffer value)Sets the address of the specifiedIntBufferto thekdroppedfield.java.nio.IntBufferkflags(int capacity)IOURingSQkflags(java.nio.IntBuffer value)Sets the address of the specifiedIntBufferto thekflagsfield.java.nio.IntBufferkhead(int capacity)IOURingSQkhead(java.nio.IntBuffer value)Sets the address of the specifiedIntBufferto thekheadfield.java.nio.IntBufferkring_entries(int capacity)IOURingSQkring_entries(java.nio.IntBuffer value)Sets the address of the specifiedIntBufferto thekring_entriesfield.java.nio.IntBufferkring_mask(int capacity)IOURingSQkring_mask(java.nio.IntBuffer value)Sets the address of the specifiedIntBufferto thekring_maskfield.java.nio.IntBufferktail(int capacity)IOURingSQktail(java.nio.IntBuffer value)Sets the address of the specifiedIntBufferto thektailfield.static IOURingSQmalloc()Returns a newIOURingSQinstance allocated withmemAlloc.static IOURingSQ.Buffermalloc(int capacity)Returns a newIOURingSQ.Bufferinstance allocated withmemAlloc.static IOURingSQ.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newIOURingSQ.Bufferinstance allocated on the specifiedMemoryStack.static IOURingSQmalloc(org.lwjgl.system.MemoryStack stack)Returns a newIOURingSQinstance allocated on the specifiedMemoryStack.static java.nio.IntBuffernarray(long struct, int capacity)Unsafe version ofarray.static voidnarray(long struct, java.nio.IntBuffer value)Unsafe version ofarray.static java.nio.IntBuffernkdropped(long struct, int capacity)Unsafe version ofkdropped.static voidnkdropped(long struct, java.nio.IntBuffer value)Unsafe version ofkdropped.static java.nio.IntBuffernkflags(long struct, int capacity)Unsafe version ofkflags.static voidnkflags(long struct, java.nio.IntBuffer value)Unsafe version ofkflags.static java.nio.IntBuffernkhead(long struct, int capacity)Unsafe version ofkhead.static voidnkhead(long struct, java.nio.IntBuffer value)Unsafe version ofkhead.static java.nio.IntBuffernkring_entries(long struct, int capacity)Unsafe version ofkring_entries.static voidnkring_entries(long struct, java.nio.IntBuffer value)Unsafe version ofkring_entries.static java.nio.IntBuffernkring_mask(long struct, int capacity)Unsafe version ofkring_mask.static voidnkring_mask(long struct, java.nio.IntBuffer value)Unsafe version ofkring_mask.static java.nio.IntBuffernktail(long struct, int capacity)Unsafe version ofktail.static voidnktail(long struct, java.nio.IntBuffer value)Unsafe version ofktail.static java.nio.IntBuffernpad(long struct)static intnpad(long struct, int index)static voidnpad(long struct, int index, int value)static voidnpad(long struct, java.nio.IntBuffer value)static java.nio.ByteBuffernring_ptr(long struct)Unsafe version ofring_ptr.static voidnring_ptr(long struct, java.nio.ByteBuffer value)Unsafe version ofring_ptr.static longnring_sz(long struct)Unsafe version ofring_sz().static voidnring_sz(long struct, long value)Sets the specified value to thering_szfield of the specifiedstruct.static intnsqe_head(long struct)Unsafe version ofsqe_head().static voidnsqe_head(long struct, int value)Unsafe version ofsqe_head.static intnsqe_tail(long struct)Unsafe version ofsqe_tail().static voidnsqe_tail(long struct, int value)Unsafe version ofsqe_tail.static IOURingSQEnsqes(long struct)Unsafe version ofsqes().static voidnsqes(long struct, IOURingSQE value)Unsafe version ofsqes.java.nio.ByteBufferring_ptr()IOURingSQring_ptr(java.nio.ByteBuffer value)Sets the address of the specifiedByteBufferto thering_ptrfield.longring_sz()IOURingSQset(java.nio.IntBuffer khead, java.nio.IntBuffer ktail, java.nio.IntBuffer kring_mask, java.nio.IntBuffer kring_entries, java.nio.IntBuffer kflags, java.nio.IntBuffer kdropped, java.nio.IntBuffer array, IOURingSQE sqes, int sqe_head, int sqe_tail, java.nio.ByteBuffer ring_ptr)Initializes this struct with the specified values.IOURingSQset(IOURingSQ src)Copies the specified struct data to this struct.intsizeof()intsqe_head()IOURingSQsqe_head(int value)Sets the specified value to thesqe_headfield.intsqe_tail()IOURingSQsqe_tail(int value)Sets the specified value to thesqe_tailfield.IOURingSQEsqes()IOURingSQsqes(IOURingSQE value)Sets the address of the specifiedIOURingSQEto thesqesfield.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
IOURingSQ
public IOURingSQ(java.nio.ByteBuffer container)
Creates aIOURingSQinstance 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
-
khead
public java.nio.IntBuffer khead(int capacity)
- Parameters:
capacity- the number of elements in the returned buffer- Returns:
- a
IntBufferview of the data pointed to by thekheadfield.
-
ktail
public java.nio.IntBuffer ktail(int capacity)
- Parameters:
capacity- the number of elements in the returned buffer- Returns:
- a
IntBufferview of the data pointed to by thektailfield.
-
kring_mask
public java.nio.IntBuffer kring_mask(int capacity)
- Parameters:
capacity- the number of elements in the returned buffer- Returns:
- a
IntBufferview of the data pointed to by thekring_maskfield.
-
kring_entries
public java.nio.IntBuffer kring_entries(int capacity)
- Parameters:
capacity- the number of elements in the returned buffer- Returns:
- a
IntBufferview of the data pointed to by thekring_entriesfield.
-
kflags
public java.nio.IntBuffer kflags(int capacity)
- Parameters:
capacity- the number of elements in the returned buffer- Returns:
- a
IntBufferview of the data pointed to by thekflagsfield.
-
kdropped
public java.nio.IntBuffer kdropped(int capacity)
- Parameters:
capacity- the number of elements in the returned buffer- Returns:
- a
IntBufferview of the data pointed to by thekdroppedfield.
-
array
public java.nio.IntBuffer array(int capacity)
- Parameters:
capacity- the number of elements in the returned buffer- Returns:
- a
IntBufferview of the data pointed to by thearrayfield.
-
sqes
public IOURingSQE sqes()
- Returns:
- a
IOURingSQEview of the struct pointed to by thesqesfield.
-
sqe_head
public int sqe_head()
- Returns:
- the value of the
sqe_headfield.
-
sqe_tail
public int sqe_tail()
- Returns:
- the value of the
sqe_tailfield.
-
ring_sz
public long ring_sz()
- Returns:
- the value of the
ring_szfield.
-
ring_ptr
public java.nio.ByteBuffer ring_ptr()
- Returns:
- a
ByteBufferview of the data pointed to by thering_ptrfield.
-
khead
public IOURingSQ khead(java.nio.IntBuffer value)
Sets the address of the specifiedIntBufferto thekheadfield.
-
ktail
public IOURingSQ ktail(java.nio.IntBuffer value)
Sets the address of the specifiedIntBufferto thektailfield.
-
kring_mask
public IOURingSQ kring_mask(java.nio.IntBuffer value)
Sets the address of the specifiedIntBufferto thekring_maskfield.
-
kring_entries
public IOURingSQ kring_entries(java.nio.IntBuffer value)
Sets the address of the specifiedIntBufferto thekring_entriesfield.
-
kflags
public IOURingSQ kflags(java.nio.IntBuffer value)
Sets the address of the specifiedIntBufferto thekflagsfield.
-
kdropped
public IOURingSQ kdropped(java.nio.IntBuffer value)
Sets the address of the specifiedIntBufferto thekdroppedfield.
-
array
public IOURingSQ array(java.nio.IntBuffer value)
Sets the address of the specifiedIntBufferto thearrayfield.
-
sqes
public IOURingSQ sqes(IOURingSQE value)
Sets the address of the specifiedIOURingSQEto thesqesfield.
-
sqe_head
public IOURingSQ sqe_head(int value)
Sets the specified value to thesqe_headfield.
-
sqe_tail
public IOURingSQ sqe_tail(int value)
Sets the specified value to thesqe_tailfield.
-
ring_ptr
public IOURingSQ ring_ptr(java.nio.ByteBuffer value)
Sets the address of the specifiedByteBufferto thering_ptrfield.
-
set
public IOURingSQ set(java.nio.IntBuffer khead, java.nio.IntBuffer ktail, java.nio.IntBuffer kring_mask, java.nio.IntBuffer kring_entries, java.nio.IntBuffer kflags, java.nio.IntBuffer kdropped, java.nio.IntBuffer array, IOURingSQE sqes, int sqe_head, int sqe_tail, java.nio.ByteBuffer ring_ptr)
Initializes this struct with the specified values.
-
set
public IOURingSQ set(IOURingSQ src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static IOURingSQ malloc()
Returns a newIOURingSQinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static IOURingSQ calloc()
Returns a newIOURingSQinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static IOURingSQ create()
Returns a newIOURingSQinstance allocated withBufferUtils.
-
create
public static IOURingSQ create(long address)
Returns a newIOURingSQinstance for the specified memory address.
-
createSafe
@Nullable public static IOURingSQ createSafe(long address)
-
malloc
public static IOURingSQ.Buffer malloc(int capacity)
Returns a newIOURingSQ.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static IOURingSQ.Buffer calloc(int capacity)
Returns a newIOURingSQ.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static IOURingSQ.Buffer create(int capacity)
Returns a newIOURingSQ.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static IOURingSQ.Buffer create(long address, int capacity)
Create aIOURingSQ.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static IOURingSQ.Buffer createSafe(long address, int capacity)
-
malloc
public static IOURingSQ malloc(org.lwjgl.system.MemoryStack stack)
Returns a newIOURingSQinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static IOURingSQ calloc(org.lwjgl.system.MemoryStack stack)
Returns a newIOURingSQinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static IOURingSQ.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newIOURingSQ.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static IOURingSQ.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newIOURingSQ.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nkhead
public static java.nio.IntBuffer nkhead(long struct, int capacity)Unsafe version ofkhead.
-
nktail
public static java.nio.IntBuffer nktail(long struct, int capacity)Unsafe version ofktail.
-
nkring_mask
public static java.nio.IntBuffer nkring_mask(long struct, int capacity)Unsafe version ofkring_mask.
-
nkring_entries
public static java.nio.IntBuffer nkring_entries(long struct, int capacity)Unsafe version ofkring_entries.
-
nkflags
public static java.nio.IntBuffer nkflags(long struct, int capacity)Unsafe version ofkflags.
-
nkdropped
public static java.nio.IntBuffer nkdropped(long struct, int capacity)Unsafe version ofkdropped.
-
narray
public static java.nio.IntBuffer narray(long struct, int capacity)Unsafe version ofarray.
-
nsqes
public static IOURingSQE nsqes(long struct)
Unsafe version ofsqes().
-
nsqe_head
public static int nsqe_head(long struct)
Unsafe version ofsqe_head().
-
nsqe_tail
public static int nsqe_tail(long struct)
Unsafe version ofsqe_tail().
-
nring_sz
public static long nring_sz(long struct)
Unsafe version ofring_sz().
-
nring_ptr
public static java.nio.ByteBuffer nring_ptr(long struct)
Unsafe version ofring_ptr.
-
npad
public static java.nio.IntBuffer npad(long struct)
-
npad
public static int npad(long struct, int index)
-
nkhead
public static void nkhead(long struct, java.nio.IntBuffer value)Unsafe version ofkhead.
-
nktail
public static void nktail(long struct, java.nio.IntBuffer value)Unsafe version ofktail.
-
nkring_mask
public static void nkring_mask(long struct, java.nio.IntBuffer value)Unsafe version ofkring_mask.
-
nkring_entries
public static void nkring_entries(long struct, java.nio.IntBuffer value)Unsafe version ofkring_entries.
-
nkflags
public static void nkflags(long struct, java.nio.IntBuffer value)Unsafe version ofkflags.
-
nkdropped
public static void nkdropped(long struct, java.nio.IntBuffer value)Unsafe version ofkdropped.
-
narray
public static void narray(long struct, java.nio.IntBuffer value)Unsafe version ofarray.
-
nsqes
public static void nsqes(long struct, IOURingSQE value)Unsafe version ofsqes.
-
nsqe_head
public static void nsqe_head(long struct, int value)Unsafe version ofsqe_head.
-
nsqe_tail
public static void nsqe_tail(long struct, int value)Unsafe version ofsqe_tail.
-
nring_sz
public static void nring_sz(long struct, long value)Sets the specified value to thering_szfield of the specifiedstruct.
-
nring_ptr
public static void nring_ptr(long struct, java.nio.ByteBuffer value)Unsafe version ofring_ptr.
-
npad
public static void npad(long struct, java.nio.IntBuffer value)
-
npad
public static void npad(long struct, int index, int value)
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-