Package org.lwjgl.system.linux.liburing
Class IOURingParams.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<SELF>
org.lwjgl.system.StructBuffer<IOURingParams,IOURingParams.Buffer>
org.lwjgl.system.linux.liburing.IOURingParams.Buffer
- All Implemented Interfaces:
AutoCloseable
,Iterable<IOURingParams>
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
- Enclosing class:
IOURingParams
public static class IOURingParams.Buffer
extends org.lwjgl.system.StructBuffer<IOURingParams,IOURingParams.Buffer>
implements org.lwjgl.system.NativeResource
An array of
IOURingParams
structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default
-
Field Summary
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionBuffer
(long address, int cap) Buffer
(ByteBuffer container) Creates a newIOURingParams.Buffer
instance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionint
cq_entries
(int value) Sets the specified value to thecq_entries
field.cq_off()
cq_off
(Consumer<IOCQRingOffsets> consumer) Passes thecq_off
field to the specifiedConsumer
.cq_off
(IOCQRingOffsets value) Copies the specifiedIOCQRingOffsets
to thecq_off
field.int
features()
features
(int value) Sets the specified value to theIOURingParams.features()
field.int
flags()
flags
(int value) Sets the specified value to theIOURingParams.flags()
field.resv()
int
resv
(int index) resv
(int index, int value) Sets the specified value at the specified index of theresv
field.Copies the specifiedIntBuffer
to theresv
field.int
sq_entries
(int value) Sets the specified value to theIOURingParams.sq_entries()
field.sq_off()
sq_off
(Consumer<IOSQRingOffsets> consumer) Passes theIOURingParams.sq_off()
field to the specifiedConsumer
.sq_off
(IOSQRingOffsets value) Copies the specifiedIOSQRingOffsets
to theIOURingParams.sq_off()
field.int
sq_thread_cpu
(int value) Sets the specified value to thesq_thread_cpu
field.int
sq_thread_idle
(int value) Sets the specified value to thesq_thread_idle
field.int
wq_fd()
wq_fd
(int value) Sets the specified value to thewq_fd
field.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, stream
Methods inherited from class org.lwjgl.system.CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toString
Methods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCode
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newIOURingParams.Buffer
instance backed by the specified container.Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by
IOURingParams.SIZEOF
, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Details
-
sq_entries
public int sq_entries()- Returns:
- the value of the
IOURingParams.sq_entries()
field.
-
cq_entries
public int cq_entries()- Returns:
- the value of the
cq_entries
field.
-
flags
public int flags()- Returns:
- the value of the
IOURingParams.flags()
field.
-
sq_thread_cpu
public int sq_thread_cpu()- Returns:
- the value of the
sq_thread_cpu
field.
-
sq_thread_idle
public int sq_thread_idle()- Returns:
- the value of the
sq_thread_idle
field.
-
features
public int features()- Returns:
- the value of the
IOURingParams.features()
field.
-
wq_fd
public int wq_fd()- Returns:
- the value of the
wq_fd
field.
-
resv
- Returns:
- a
IntBuffer
view of theresv
field.
-
resv
public int resv(int index) - Returns:
- the value at the specified index of the
resv
field.
-
sq_off
- Returns:
- a
IOSQRingOffsets
view of theIOURingParams.sq_off()
field.
-
cq_off
- Returns:
- a
IOCQRingOffsets
view of thecq_off
field.
-
sq_entries
Sets the specified value to theIOURingParams.sq_entries()
field. -
cq_entries
Sets the specified value to thecq_entries
field. -
flags
Sets the specified value to theIOURingParams.flags()
field. -
sq_thread_cpu
Sets the specified value to thesq_thread_cpu
field. -
sq_thread_idle
Sets the specified value to thesq_thread_idle
field. -
features
Sets the specified value to theIOURingParams.features()
field. -
wq_fd
Sets the specified value to thewq_fd
field. -
resv
Copies the specifiedIntBuffer
to theresv
field. -
resv
Sets the specified value at the specified index of theresv
field. -
sq_off
Copies the specifiedIOSQRingOffsets
to theIOURingParams.sq_off()
field. -
sq_off
Passes theIOURingParams.sq_off()
field to the specifiedConsumer
. -
cq_off
Copies the specifiedIOCQRingOffsets
to thecq_off
field. -
cq_off
Passes thecq_off
field to the specifiedConsumer
.
-