Package org.lwjgl.system.linux.liburing
Class IOURingCQ
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.system.linux.liburing.IOURingCQ
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class IOURingCQ extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Layout
struct io_uring_cq { unsigned * khead; unsigned * ktail; unsigned * kring_mask; unsigned * kring_entries; unsigned * kflags; unsigned * koverflow;
struct io_uring_cqe
* cqes; size_t ring_sz; void * ring_ptr; unsigned int pad[4]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IOURingCQ.Buffer
An array ofIOURingCQ
structs.
-
Constructor Summary
Constructors Constructor Description IOURingCQ(java.nio.ByteBuffer container)
Creates aIOURingCQ
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IOURingCQ
calloc()
Returns a newIOURingCQ
instance allocated withmemCalloc
.static IOURingCQ.Buffer
calloc(int capacity)
Returns a newIOURingCQ.Buffer
instance allocated withmemCalloc
.static IOURingCQ.Buffer
calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newIOURingCQ.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOURingCQ
calloc(org.lwjgl.system.MemoryStack stack)
Returns a newIOURingCQ
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.IOURingCQE
cqes()
IOURingCQ
cqes(IOURingCQE value)
Sets the address of the specifiedIOURingCQE
to thecqes
field.static IOURingCQ
create()
Returns a newIOURingCQ
instance allocated withBufferUtils
.static IOURingCQ.Buffer
create(int capacity)
Returns a newIOURingCQ.Buffer
instance allocated withBufferUtils
.static IOURingCQ
create(long address)
Returns a newIOURingCQ
instance for the specified memory address.static IOURingCQ.Buffer
create(long address, int capacity)
Create aIOURingCQ.Buffer
instance at the specified memory.static IOURingCQ
createSafe(long address)
static IOURingCQ.Buffer
createSafe(long address, int capacity)
java.nio.IntBuffer
kflags(int capacity)
IOURingCQ
kflags(java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to thekflags
field.java.nio.IntBuffer
khead(int capacity)
IOURingCQ
khead(java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to thekhead
field.java.nio.IntBuffer
koverflow(int capacity)
IOURingCQ
koverflow(java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to thekoverflow
field.java.nio.IntBuffer
kring_entries(int capacity)
IOURingCQ
kring_entries(java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to thekring_entries
field.java.nio.IntBuffer
kring_mask(int capacity)
IOURingCQ
kring_mask(java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to thekring_mask
field.java.nio.IntBuffer
ktail(int capacity)
IOURingCQ
ktail(java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to thektail
field.static IOURingCQ
malloc()
Returns a newIOURingCQ
instance allocated withmemAlloc
.static IOURingCQ.Buffer
malloc(int capacity)
Returns a newIOURingCQ.Buffer
instance allocated withmemAlloc
.static IOURingCQ.Buffer
malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newIOURingCQ.Buffer
instance allocated on the specifiedMemoryStack
.static IOURingCQ
malloc(org.lwjgl.system.MemoryStack stack)
Returns a newIOURingCQ
instance allocated on the specifiedMemoryStack
.static IOURingCQE
ncqes(long struct)
Unsafe version ofcqes()
.static void
ncqes(long struct, IOURingCQE value)
Unsafe version ofcqes
.static java.nio.IntBuffer
nkflags(long struct, int capacity)
Unsafe version ofkflags
.static void
nkflags(long struct, java.nio.IntBuffer value)
Unsafe version ofkflags
.static java.nio.IntBuffer
nkhead(long struct, int capacity)
Unsafe version ofkhead
.static void
nkhead(long struct, java.nio.IntBuffer value)
Unsafe version ofkhead
.static java.nio.IntBuffer
nkoverflow(long struct, int capacity)
Unsafe version ofkoverflow
.static void
nkoverflow(long struct, java.nio.IntBuffer value)
Unsafe version ofkoverflow
.static java.nio.IntBuffer
nkring_entries(long struct, int capacity)
Unsafe version ofkring_entries
.static void
nkring_entries(long struct, java.nio.IntBuffer value)
Unsafe version ofkring_entries
.static java.nio.IntBuffer
nkring_mask(long struct, int capacity)
Unsafe version ofkring_mask
.static void
nkring_mask(long struct, java.nio.IntBuffer value)
Unsafe version ofkring_mask
.static java.nio.IntBuffer
nktail(long struct, int capacity)
Unsafe version ofktail
.static void
nktail(long struct, java.nio.IntBuffer value)
Unsafe version ofktail
.static java.nio.IntBuffer
npad(long struct)
static int
npad(long struct, int index)
static void
npad(long struct, int index, int value)
static void
npad(long struct, java.nio.IntBuffer value)
static java.nio.ByteBuffer
nring_ptr(long struct)
Unsafe version ofring_ptr
.static void
nring_ptr(long struct, java.nio.ByteBuffer value)
Unsafe version ofring_ptr
.static long
nring_sz(long struct)
Unsafe version ofring_sz()
.static void
nring_sz(long struct, long value)
Sets the specified value to thering_sz
field of the specifiedstruct
.java.nio.ByteBuffer
ring_ptr()
IOURingCQ
ring_ptr(java.nio.ByteBuffer value)
Sets the address of the specifiedByteBuffer
to thering_ptr
field.long
ring_sz()
IOURingCQ
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 koverflow, IOURingCQE cqes, java.nio.ByteBuffer ring_ptr)
Initializes this struct with the specified values.IOURingCQ
set(IOURingCQ src)
Copies the specified struct data to this struct.int
sizeof()
static void
validate(long struct)
Validates pointer members that should not beNULL
.
-
-
-
Constructor Detail
-
IOURingCQ
public IOURingCQ(java.nio.ByteBuffer container)
Creates aIOURingCQ
instance at the current position of the specifiedByteBuffer
container. 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:
sizeof
in classorg.lwjgl.system.Struct
-
khead
public java.nio.IntBuffer khead(int capacity)
- Parameters:
capacity
- the number of elements in the returned buffer- Returns:
- a
IntBuffer
view of the data pointed to by thekhead
field.
-
ktail
public java.nio.IntBuffer ktail(int capacity)
- Parameters:
capacity
- the number of elements in the returned buffer- Returns:
- a
IntBuffer
view of the data pointed to by thektail
field.
-
kring_mask
public java.nio.IntBuffer kring_mask(int capacity)
- Parameters:
capacity
- the number of elements in the returned buffer- Returns:
- a
IntBuffer
view of the data pointed to by thekring_mask
field.
-
kring_entries
public java.nio.IntBuffer kring_entries(int capacity)
- Parameters:
capacity
- the number of elements in the returned buffer- Returns:
- a
IntBuffer
view of the data pointed to by thekring_entries
field.
-
kflags
public java.nio.IntBuffer kflags(int capacity)
- Parameters:
capacity
- the number of elements in the returned buffer- Returns:
- a
IntBuffer
view of the data pointed to by thekflags
field.
-
koverflow
public java.nio.IntBuffer koverflow(int capacity)
- Parameters:
capacity
- the number of elements in the returned buffer- Returns:
- a
IntBuffer
view of the data pointed to by thekoverflow
field.
-
cqes
public IOURingCQE cqes()
- Returns:
- a
IOURingCQE
view of the struct pointed to by thecqes
field.
-
ring_sz
public long ring_sz()
- Returns:
- the value of the
ring_sz
field.
-
ring_ptr
public java.nio.ByteBuffer ring_ptr()
- Returns:
- a
ByteBuffer
view of the data pointed to by thering_ptr
field.
-
khead
public IOURingCQ khead(java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to thekhead
field.
-
ktail
public IOURingCQ ktail(java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to thektail
field.
-
kring_mask
public IOURingCQ kring_mask(java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to thekring_mask
field.
-
kring_entries
public IOURingCQ kring_entries(java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to thekring_entries
field.
-
kflags
public IOURingCQ kflags(java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to thekflags
field.
-
koverflow
public IOURingCQ koverflow(java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to thekoverflow
field.
-
cqes
public IOURingCQ cqes(IOURingCQE value)
Sets the address of the specifiedIOURingCQE
to thecqes
field.
-
ring_ptr
public IOURingCQ ring_ptr(java.nio.ByteBuffer value)
Sets the address of the specifiedByteBuffer
to thering_ptr
field.
-
set
public IOURingCQ 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 koverflow, IOURingCQE cqes, java.nio.ByteBuffer ring_ptr)
Initializes this struct with the specified values.
-
set
public IOURingCQ set(IOURingCQ src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static IOURingCQ malloc()
Returns a newIOURingCQ
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static IOURingCQ calloc()
Returns a newIOURingCQ
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static IOURingCQ create()
Returns a newIOURingCQ
instance allocated withBufferUtils
.
-
create
public static IOURingCQ create(long address)
Returns a newIOURingCQ
instance for the specified memory address.
-
createSafe
@Nullable public static IOURingCQ createSafe(long address)
-
malloc
public static IOURingCQ.Buffer malloc(int capacity)
Returns a newIOURingCQ.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static IOURingCQ.Buffer calloc(int capacity)
Returns a newIOURingCQ.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static IOURingCQ.Buffer create(int capacity)
Returns a newIOURingCQ.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static IOURingCQ.Buffer create(long address, int capacity)
Create aIOURingCQ.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static IOURingCQ.Buffer createSafe(long address, int capacity)
-
malloc
public static IOURingCQ malloc(org.lwjgl.system.MemoryStack stack)
Returns a newIOURingCQ
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
public static IOURingCQ calloc(org.lwjgl.system.MemoryStack stack)
Returns a newIOURingCQ
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
public static IOURingCQ.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newIOURingCQ.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
calloc
public static IOURingCQ.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newIOURingCQ.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-
nkoverflow
public static java.nio.IntBuffer nkoverflow(long struct, int capacity)
Unsafe version ofkoverflow
.
-
ncqes
public static IOURingCQE ncqes(long struct)
Unsafe version ofcqes()
.
-
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
.
-
nkoverflow
public static void nkoverflow(long struct, java.nio.IntBuffer value)
Unsafe version ofkoverflow
.
-
ncqes
public static void ncqes(long struct, IOURingCQE value)
Unsafe version ofcqes
.
-
nring_sz
public static void nring_sz(long struct, long value)
Sets the specified value to thering_sz
field 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
-
-