Package org.lwjgl.system.linux.liburing
Class IOURingBufRing
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct
org.lwjgl.system.linux.liburing.IOURingBufRing
- All Implemented Interfaces:
AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class IOURingBufRing
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
Layout
struct io_uring_buf_ring {
union {
struct {
__u64 resv1;
__u32 resv2;
__u16 resv3;
__u16 tail;
};
struct io_uring_buf
bufs[0];
};
}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionIOURingBufRing
(ByteBuffer container) Creates aIOURingBufRing
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionbufs()
bufs
(int index) bufs
(int index, Consumer<IOURingBuf> consumer) bufs
(int index, IOURingBuf value) Copies the specifiedIOURingBuf
at the specified index of thebufs
field.bufs
(Consumer<IOURingBuf.Buffer> consumer) Passes thebufs
field to the specifiedConsumer
.bufs
(IOURingBuf.Buffer value) Copies the specifiedIOURingBuf.Buffer
to thebufs
field.static IOURingBufRing
calloc()
Returns a newIOURingBufRing
instance allocated withmemCalloc
.static IOURingBufRing.Buffer
calloc
(int capacity) Returns a newIOURingBufRing.Buffer
instance allocated withmemCalloc
.static IOURingBufRing.Buffer
calloc
(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newIOURingBufRing.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOURingBufRing
calloc
(org.lwjgl.system.MemoryStack stack) Returns a newIOURingBufRing
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOURingBufRing
create()
Returns a newIOURingBufRing
instance allocated withBufferUtils
.static IOURingBufRing.Buffer
create
(int capacity) Returns a newIOURingBufRing.Buffer
instance allocated withBufferUtils
.static IOURingBufRing
create
(long address) Returns a newIOURingBufRing
instance for the specified memory address.static IOURingBufRing.Buffer
create
(long address, int capacity) Create aIOURingBufRing.Buffer
instance at the specified memory.static IOURingBufRing
createSafe
(long address) static IOURingBufRing.Buffer
createSafe
(long address, int capacity) static IOURingBufRing
malloc()
Returns a newIOURingBufRing
instance allocated withmemAlloc
.static IOURingBufRing.Buffer
malloc
(int capacity) Returns a newIOURingBufRing.Buffer
instance allocated withmemAlloc
.static IOURingBufRing.Buffer
malloc
(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newIOURingBufRing.Buffer
instance allocated on the specifiedMemoryStack
.static IOURingBufRing
malloc
(org.lwjgl.system.MemoryStack stack) Returns a newIOURingBufRing
instance allocated on the specifiedMemoryStack
.static IOURingBuf.Buffer
nbufs
(long struct) Unsafe version ofbufs()
.static IOURingBuf
nbufs
(long struct, int index) Unsafe version ofbufs
.static void
nbufs
(long struct, int index, IOURingBuf value) Unsafe version ofbufs
.static void
nbufs
(long struct, IOURingBuf.Buffer value) Unsafe version ofbufs
.static long
nresv1
(long struct) Unsafe version ofresv1()
.static void
nresv1
(long struct, long value) Unsafe version ofresv1
.static int
nresv2
(long struct) Unsafe version ofresv2()
.static void
nresv2
(long struct, int value) Unsafe version ofresv2
.static short
nresv3
(long struct) Unsafe version ofresv3()
.static void
nresv3
(long struct, short value) Unsafe version ofresv3
.static short
ntail
(long struct) Unsafe version oftail()
.static void
ntail
(long struct, short value) Unsafe version oftail
.long
resv1()
resv1
(long value) Sets the specified value to theresv1
field.int
resv2()
resv2
(int value) Sets the specified value to theresv2
field.short
resv3()
resv3
(short value) Sets the specified value to theresv3
field.set
(IOURingBufRing src) Copies the specified struct data to this struct.int
sizeof()
short
tail()
tail
(short value) Sets the specified value to thetail
field.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
RESV1
public static final int RESV1The struct member offsets. -
RESV2
public static final int RESV2The struct member offsets. -
RESV3
public static final int RESV3The struct member offsets. -
TAIL
public static final int TAILThe struct member offsets. -
BUFS
public static final int BUFSThe struct member offsets.
-
-
Constructor Details
-
IOURingBufRing
Creates aIOURingBufRing
instance at the current position of the specifiedByteBuffer
container. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Details
-
sizeof
public int sizeof()- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
resv1
public long resv1()- Returns:
- the value of the
resv1
field.
-
resv2
public int resv2()- Returns:
- the value of the
resv2
field.
-
resv3
public short resv3()- Returns:
- the value of the
resv3
field.
-
tail
public short tail()- Returns:
- the value of the
tail
field.
-
bufs
- Returns:
- a
IOURingBuf
.Buffer view of thebufs
field.
-
bufs
- Returns:
- a
IOURingBuf
view of the struct at the specified index of thebufs
field.
-
resv1
Sets the specified value to theresv1
field. -
resv2
Sets the specified value to theresv2
field. -
resv3
Sets the specified value to theresv3
field. -
tail
Sets the specified value to thetail
field. -
bufs
Copies the specifiedIOURingBuf.Buffer
to thebufs
field. -
bufs
Copies the specifiedIOURingBuf
at the specified index of thebufs
field. -
bufs
Passes thebufs
field to the specifiedConsumer
. -
bufs
-
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newIOURingBufRing
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newIOURingBufRing
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newIOURingBufRing
instance allocated withBufferUtils
. -
create
Returns a newIOURingBufRing
instance for the specified memory address. -
createSafe
-
malloc
Returns a newIOURingBufRing.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newIOURingBufRing.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newIOURingBufRing.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aIOURingBufRing.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newIOURingBufRing
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newIOURingBufRing
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newIOURingBufRing.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newIOURingBufRing.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nresv1
public static long nresv1(long struct) Unsafe version ofresv1()
. -
nresv2
public static int nresv2(long struct) Unsafe version ofresv2()
. -
nresv3
public static short nresv3(long struct) Unsafe version ofresv3()
. -
ntail
public static short ntail(long struct) Unsafe version oftail()
. -
nbufs
Unsafe version ofbufs()
. -
nbufs
Unsafe version ofbufs
. -
nresv1
public static void nresv1(long struct, long value) Unsafe version ofresv1
. -
nresv2
public static void nresv2(long struct, int value) Unsafe version ofresv2
. -
nresv3
public static void nresv3(long struct, short value) Unsafe version ofresv3
. -
ntail
public static void ntail(long struct, short value) Unsafe version oftail
. -
nbufs
Unsafe version ofbufs
. -
nbufs
Unsafe version ofbufs
.
-