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.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionintcq_entries(int value) Sets the specified value to thecq_entriesfield.cq_off()cq_off(Consumer<IOCQRingOffsets> consumer) Passes thecq_offfield to the specifiedConsumer.cq_off(IOCQRingOffsets value) Copies the specifiedIOCQRingOffsetsto thecq_offfield.intfeatures()features(int value) Sets the specified value to thefeaturesfield.intflags()flags(int value) Sets the specified value to theflagsfield.intsq_entries(int value) Sets the specified value to thesq_entriesfield.sq_off()sq_off(Consumer<IOSQRingOffsets> consumer) Passes thesq_offfield to the specifiedConsumer.sq_off(IOSQRingOffsets value) Copies the specifiedIOSQRingOffsetsto thesq_offfield.intsq_thread_cpu(int value) Sets the specified value to thesq_thread_cpufield.intsq_thread_idle(int value) Sets the specified value to thesq_thread_idlefield.intwq_fd()wq_fd(int value) Sets the specified value to thewq_fdfield.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods 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, toStringMethods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCodeMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newIOURingParams.Bufferinstance 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_entriesfield.
-
cq_entries
public int cq_entries()- Returns:
- the value of the
cq_entriesfield.
-
flags
public int flags()- Returns:
- the value of the
flagsfield.
-
sq_thread_cpu
public int sq_thread_cpu()- Returns:
- the value of the
sq_thread_cpufield.
-
sq_thread_idle
public int sq_thread_idle()- Returns:
- the value of the
sq_thread_idlefield.
-
features
public int features()- Returns:
- the value of the
featuresfield.
-
wq_fd
public int wq_fd()- Returns:
- the value of the
wq_fdfield.
-
sq_off
- Returns:
- a
IOSQRingOffsetsview of thesq_offfield.
-
cq_off
- Returns:
- a
IOCQRingOffsetsview of thecq_offfield.
-
sq_entries
Sets the specified value to thesq_entriesfield. -
cq_entries
Sets the specified value to thecq_entriesfield. -
flags
Sets the specified value to theflagsfield. -
sq_thread_cpu
Sets the specified value to thesq_thread_cpufield. -
sq_thread_idle
Sets the specified value to thesq_thread_idlefield. -
features
Sets the specified value to thefeaturesfield. -
wq_fd
Sets the specified value to thewq_fdfield. -
sq_off
Copies the specifiedIOSQRingOffsetsto thesq_offfield. -
sq_off
Passes thesq_offfield to the specifiedConsumer. -
cq_off
Copies the specifiedIOCQRingOffsetsto thecq_offfield. -
cq_off
Passes thecq_offfield to the specifiedConsumer.
-