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 ofIOURing
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IOURingCQ
cq()
IOURing.Buffer
cq(java.util.function.Consumer<IOURingCQ> consumer)
Passes thecq
field to the specifiedConsumer
.IOURing.Buffer
cq(IOURingCQ value)
Copies the specifiedIOURingCQ
to thecq
field.int
features()
IOURing.Buffer
features(int value)
Sets the specified value to thefeatures
field.int
flags()
IOURing.Buffer
flags(int value)
Sets the specified value to theflags
field.int
ring_fd()
IOURing.Buffer
ring_fd(int value)
Sets the specified value to thering_fd
field.IOURingSQ
sq()
IOURing.Buffer
sq(java.util.function.Consumer<IOURingSQ> consumer)
Passes thesq
field to the specifiedConsumer
.IOURing.Buffer
sq(IOURingSQ value)
Copies the specifiedIOURingSQ
to thesq
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newIOURing.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 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
flags
field.
-
ring_fd
public int ring_fd()
- Returns:
- the value of the
ring_fd
field.
-
features
public int features()
- Returns:
- the value of the
features
field.
-
sq
public IOURing.Buffer sq(IOURingSQ value)
Copies the specifiedIOURingSQ
to thesq
field.
-
sq
public IOURing.Buffer sq(java.util.function.Consumer<IOURingSQ> consumer)
Passes thesq
field to the specifiedConsumer
.
-
cq
public IOURing.Buffer cq(IOURingCQ value)
Copies the specifiedIOURingCQ
to thecq
field.
-
cq
public IOURing.Buffer cq(java.util.function.Consumer<IOURingCQ> consumer)
Passes thecq
field to the specifiedConsumer
.
-
flags
public IOURing.Buffer flags(int value)
Sets the specified value to theflags
field.
-
ring_fd
public IOURing.Buffer ring_fd(int value)
Sets the specified value to thering_fd
field.
-
features
public IOURing.Buffer features(int value)
Sets the specified value to thefeatures
field.
-
-