Package org.lwjgl.system.linux.liburing
Class IOURing.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<IOURing,IOURing.Buffer>
-
- org.lwjgl.system.linux.liburing.IOURing.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<IOURing>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- IOURing
public static class IOURing.Buffer extends org.lwjgl.system.StructBuffer<IOURing,IOURing.Buffer> implements org.lwjgl.system.NativeResource
An array ofIOURingstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IOURingCQcq()IOURing.Buffercq(java.util.function.Consumer<IOURingCQ> consumer)Passes thecqfield to the specifiedConsumer.IOURing.Buffercq(IOURingCQ value)Copies the specifiedIOURingCQto thecqfield.intfeatures()IOURing.Bufferfeatures(int value)Sets the specified value to thefeaturesfield.intflags()IOURing.Bufferflags(int value)Sets the specified value to theflagsfield.intring_fd()IOURing.Bufferring_fd(int value)Sets the specified value to thering_fdfield.IOURingSQsq()IOURing.Buffersq(java.util.function.Consumer<IOURingSQ> consumer)Passes thesqfield to the specifiedConsumer.IOURing.Buffersq(IOURingSQ value)Copies the specifiedIOURingSQto thesqfield.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newIOURing.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 byIOURing.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 Detail
-
flags
public int flags()
- Returns:
- the value of the
flagsfield.
-
ring_fd
public int ring_fd()
- Returns:
- the value of the
ring_fdfield.
-
features
public int features()
- Returns:
- the value of the
featuresfield.
-
sq
public IOURing.Buffer sq(IOURingSQ value)
Copies the specifiedIOURingSQto thesqfield.
-
sq
public IOURing.Buffer sq(java.util.function.Consumer<IOURingSQ> consumer)
Passes thesqfield to the specifiedConsumer.
-
cq
public IOURing.Buffer cq(IOURingCQ value)
Copies the specifiedIOURingCQto thecqfield.
-
cq
public IOURing.Buffer cq(java.util.function.Consumer<IOURingCQ> consumer)
Passes thecqfield to the specifiedConsumer.
-
flags
public IOURing.Buffer flags(int value)
Sets the specified value to theflagsfield.
-
ring_fd
public IOURing.Buffer ring_fd(int value)
Sets the specified value to thering_fdfield.
-
features
public IOURing.Buffer features(int value)
Sets the specified value to thefeaturesfield.
-
-