Package org.lwjgl.system.linux.liburing
Class IOURingSQ.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<IOURingSQ.Buffer>
org.lwjgl.system.StructBuffer<IOURingSQ,IOURingSQ.Buffer>
org.lwjgl.system.linux.liburing.IOURingSQ.Buffer
- All Implemented Interfaces:
AutoCloseable,Iterable<IOURingSQ>,NativeResource,Pointer
- Enclosing class:
IOURingSQ
public static class IOURingSQ.Buffer
extends StructBuffer<IOURingSQ,IOURingSQ.Buffer>
implements NativeResource
An array of
IOURingSQ 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 newIOURingSQ.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionarray(int capacity) Sets the address of the specifiedIntBufferto thearrayfield.kdropped(int capacity) Sets the address of the specifiedIntBufferto thekdroppedfield.kflags(int capacity) Sets the address of the specifiedIntBufferto thekflagsfield.khead(int capacity) Sets the address of the specifiedIntBufferto thekheadfield.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()intsqe_head()sqe_head(int value) Sets the specified value to thesqe_headfield.intsqe_tail()sqe_tail(int value) Sets the specified value to thesqe_tailfield.sqes()sqes(IOURingSQE value) Sets the address of the specifiedIOURingSQEto thesqesfield.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 newIOURingSQ.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
IOURingSQ.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.
-
kdropped
- Returns:
- a
IntBufferview of the data pointed to by thekdroppedfield.
-
array
- Returns:
- a
IntBufferview of the data pointed to by thearrayfield.
-
sqes
- Returns:
- a
IOURingSQEview of the struct pointed to by thesqesfield.
-
sqe_head
public int sqe_head()- Returns:
- the value of the
sqe_headfield.
-
sqe_tail
public int sqe_tail()- Returns:
- the value of the
sqe_tailfield.
-
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. -
kdropped
Sets the address of the specifiedIntBufferto thekdroppedfield. -
array
Sets the address of the specifiedIntBufferto thearrayfield. -
sqes
Sets the address of the specifiedIOURingSQEto thesqesfield. -
sqe_head
Sets the specified value to thesqe_headfield. -
sqe_tail
Sets the specified value to thesqe_tailfield. -
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.
-