Package org.lwjgl.system.linux.liburing
Class IOURingParams.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<IOURingParams.Buffer>
org.lwjgl.system.StructBuffer<IOURingParams,IOURingParams.Buffer>
org.lwjgl.system.linux.liburing.IOURingParams.Buffer
- All Implemented Interfaces:
AutoCloseable
,Iterable<IOURingParams>
,NativeResource
,Pointer
- Enclosing class:
IOURingParams
public static class IOURingParams.Buffer
extends StructBuffer<IOURingParams,IOURingParams.Buffer>
implements NativeResource
An array of
IOURingParams
structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionBuffer
(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 thefeatures
field.int
flags()
flags
(int value) Sets the specified value to theflags
field.int
sq_entries
(int value) Sets the specified value to thesq_entries
field.sq_off()
sq_off
(Consumer<IOSQRingOffsets> consumer) Passes thesq_off
field to the specifiedConsumer
.sq_off
(IOSQRingOffsets value) Copies the specifiedIOSQRingOffsets
to thesq_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
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
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
features
field.
-
wq_fd
public int wq_fd()- Returns:
- the value of the
wq_fd
field.
-
sq_off
- Returns:
- a
IOSQRingOffsets
view of thesq_off
field.
-
cq_off
- Returns:
- a
IOCQRingOffsets
view of thecq_off
field.
-
sq_entries
Sets the specified value to thesq_entries
field. -
cq_entries
Sets the specified value to thecq_entries
field. -
flags
Sets the specified value to theflags
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 thefeatures
field. -
wq_fd
Sets the specified value to thewq_fd
field. -
sq_off
Copies the specifiedIOSQRingOffsets
to thesq_off
field. -
sq_off
Passes thesq_off
field to the specifiedConsumer
. -
cq_off
Copies the specifiedIOCQRingOffsets
to thecq_off
field. -
cq_off
Passes thecq_off
field to the specifiedConsumer
.
-