Package org.lwjgl.system.linux.liburing
Class IOURingCQE.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<IOURingCQE,IOURingCQE.Buffer>
-
- org.lwjgl.system.linux.liburing.IOURingCQE.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.lang.Iterable<IOURingCQE>
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
- Enclosing class:
- IOURingCQE
public static class IOURingCQE.Buffer extends org.lwjgl.system.StructBuffer<IOURingCQE,IOURingCQE.Buffer> implements org.lwjgl.system.NativeResource
An array ofIOURingCQE
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
flags()
IOURingCQE.Buffer
flags(int value)
Sets the specified value to theIOURingCQE.flags()
field.int
res()
IOURingCQE.Buffer
res(int value)
Sets the specified value to theIOURingCQE.res()
field.long
user_data()
IOURingCQE.Buffer
user_data(long value)
Sets the specified value to theIOURingCQE.user_data()
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newIOURingCQE.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 byIOURingCQE.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
-
user_data
public long user_data()
- Returns:
- the value of the
IOURingCQE.user_data()
field.
-
res
public int res()
- Returns:
- the value of the
IOURingCQE.res()
field.
-
flags
public int flags()
- Returns:
- the value of the
IOURingCQE.flags()
field.
-
user_data
public IOURingCQE.Buffer user_data(long value)
Sets the specified value to theIOURingCQE.user_data()
field.
-
res
public IOURingCQE.Buffer res(int value)
Sets the specified value to theIOURingCQE.res()
field.
-
flags
public IOURingCQE.Buffer flags(int value)
Sets the specified value to theIOURingCQE.flags()
field.
-
-