Package org.lwjgl.system.linux.liburing
Class IOURingCQ.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<IOURingCQ.Buffer>
org.lwjgl.system.StructBuffer<IOURingCQ,IOURingCQ.Buffer>
org.lwjgl.system.linux.liburing.IOURingCQ.Buffer
- All Implemented Interfaces:
AutoCloseable,Iterable<IOURingCQ>,NativeResource,Pointer
- Enclosing class:
IOURingCQ
public static class IOURingCQ.Buffer
extends StructBuffer<IOURingCQ,IOURingCQ.Buffer>
implements NativeResource
An array of
IOURingCQ 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 newIOURingCQ.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptioncqes()cqes(IOURingCQE value) Sets the address of the specifiedIOURingCQEto thecqesfield.kflags(int capacity) Sets the address of the specifiedIntBufferto thekflagsfield.khead(int capacity) Sets the address of the specifiedIntBufferto thekheadfield.koverflow(int capacity) Sets the address of the specifiedIntBufferto thekoverflowfield.kring_entries(int capacity) kring_entries(IntBuffer value) Sets the address of the specifiedIntBufferto thekring_entriesfield.kring_mask(int capacity) kring_mask(IntBuffer value) Sets the address of the specifiedIntBufferto thekring_maskfield.ktail(int capacity) Sets the address of the specifiedIntBufferto thektailfield.intring_entries(int value) Sets the specified value to thering_entriesfield.intring_mask(int value) Sets the specified value to thering_maskfield.ring_ptr()ring_ptr(ByteBuffer value) Sets the address of the specifiedByteBufferto thering_ptrfield.longring_sz()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 newIOURingCQ.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
IOURingCQ.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
-
khead
- Returns:
- a
IntBufferview of the data pointed to by thekheadfield.
-
ktail
- Returns:
- a
IntBufferview of the data pointed to by thektailfield.
-
kring_mask
- Returns:
- a
IntBufferview of the data pointed to by thekring_maskfield.
-
kring_entries
- Returns:
- a
IntBufferview of the data pointed to by thekring_entriesfield.
-
kflags
- Returns:
- a
IntBufferview of the data pointed to by thekflagsfield.
-
koverflow
- Returns:
- a
IntBufferview of the data pointed to by thekoverflowfield.
-
cqes
- Returns:
- a
IOURingCQEview of the struct pointed to by thecqesfield.
-
ring_sz
public long ring_sz()- Returns:
- the value of the
ring_szfield.
-
ring_ptr
- Returns:
- a
ByteBufferview of the data pointed to by thering_ptrfield.
-
ring_mask
public int ring_mask()- Returns:
- the value of the
ring_maskfield.
-
ring_entries
public int ring_entries()- Returns:
- the value of the
ring_entriesfield.
-
khead
Sets the address of the specifiedIntBufferto thekheadfield. -
ktail
Sets the address of the specifiedIntBufferto thektailfield. -
kring_mask
Sets the address of the specifiedIntBufferto thekring_maskfield. -
kring_entries
Sets the address of the specifiedIntBufferto thekring_entriesfield. -
kflags
Sets the address of the specifiedIntBufferto thekflagsfield. -
koverflow
Sets the address of the specifiedIntBufferto thekoverflowfield. -
cqes
Sets the address of the specifiedIOURingCQEto thecqesfield. -
ring_ptr
Sets the address of the specifiedByteBufferto thering_ptrfield. -
ring_mask
Sets the specified value to thering_maskfield. -
ring_entries
Sets the specified value to thering_entriesfield.
-