Package org.lwjgl.system.linux.liburing
Class IOURingBufRing
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
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 ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionIOURingBufRing(ByteBuffer container) Creates aIOURingBufRinginstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionbufs()bufs(int index) bufs(int index, Consumer<IOURingBuf> consumer) bufs(int index, IOURingBuf value) Copies the specifiedIOURingBufat the specified index of thebufsfield.bufs(Consumer<IOURingBuf.Buffer> consumer) Passes thebufsfield to the specifiedConsumer.bufs(IOURingBuf.Buffer value) Copies the specifiedIOURingBuf.Bufferto thebufsfield.static IOURingBufRingcalloc()Returns a newIOURingBufRinginstance allocated withmemCalloc.static IOURingBufRing.Buffercalloc(int capacity) Returns a newIOURingBufRing.Bufferinstance allocated withmemCalloc.static IOURingBufRing.Buffercalloc(int capacity, MemoryStack stack) Returns a newIOURingBufRing.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingBufRingcalloc(MemoryStack stack) Returns a newIOURingBufRinginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingBufRingcreate()Returns a newIOURingBufRinginstance allocated withBufferUtils.static IOURingBufRing.Buffercreate(int capacity) Returns a newIOURingBufRing.Bufferinstance allocated withBufferUtils.static IOURingBufRingcreate(long address) Returns a newIOURingBufRinginstance for the specified memory address.static IOURingBufRing.Buffercreate(long address, int capacity) Create aIOURingBufRing.Bufferinstance at the specified memory.static @Nullable IOURingBufRingcreateSafe(long address) static @Nullable IOURingBufRing.BuffercreateSafe(long address, int capacity) static IOURingBufRingmalloc()Returns a newIOURingBufRinginstance allocated withmemAlloc.static IOURingBufRing.Buffermalloc(int capacity) Returns a newIOURingBufRing.Bufferinstance allocated withmemAlloc.static IOURingBufRing.Buffermalloc(int capacity, MemoryStack stack) Returns a newIOURingBufRing.Bufferinstance allocated on the specifiedMemoryStack.static IOURingBufRingmalloc(MemoryStack stack) Returns a newIOURingBufRinginstance allocated on the specifiedMemoryStack.static IOURingBuf.Buffernbufs(long struct) Unsafe version ofbufs().static IOURingBufnbufs(long struct, int index) Unsafe version ofbufs.static voidnbufs(long struct, int index, IOURingBuf value) Unsafe version ofbufs.static voidnbufs(long struct, IOURingBuf.Buffer value) Unsafe version ofbufs.static longnresv1(long struct) Unsafe version ofresv1().static voidnresv1(long struct, long value) Unsafe version ofresv1.static intnresv2(long struct) Unsafe version ofresv2().static voidnresv2(long struct, int value) Unsafe version ofresv2.static shortnresv3(long struct) Unsafe version ofresv3().static voidnresv3(long struct, short value) Unsafe version ofresv3.static shortntail(long struct) Unsafe version oftail().static voidntail(long struct, short value) Unsafe version oftail.longresv1()resv1(long value) Sets the specified value to theresv1field.intresv2()resv2(int value) Sets the specified value to theresv2field.shortresv3()resv3(short value) Sets the specified value to theresv3field.set(IOURingBufRing src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).shorttail()tail(short value) Sets the specified value to thetailfield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 aIOURingBufRinginstance at the current position of the specifiedByteBuffercontainer. 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()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<IOURingBufRing>
-
resv1
public long resv1()- Returns:
- the value of the
resv1field.
-
resv2
public int resv2()- Returns:
- the value of the
resv2field.
-
resv3
public short resv3()- Returns:
- the value of the
resv3field.
-
tail
public short tail()- Returns:
- the value of the
tailfield.
-
bufs
- Returns:
- a
IOURingBuf.Buffer view of thebufsfield.
-
bufs
- Returns:
- a
IOURingBufview of the struct at the specified index of thebufsfield.
-
resv1
Sets the specified value to theresv1field. -
resv2
Sets the specified value to theresv2field. -
resv3
Sets the specified value to theresv3field. -
tail
Sets the specified value to thetailfield. -
bufs
Copies the specifiedIOURingBuf.Bufferto thebufsfield. -
bufs
Copies the specifiedIOURingBufat the specified index of thebufsfield. -
bufs
Passes thebufsfield to the specifiedConsumer. -
bufs
-
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newIOURingBufRinginstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newIOURingBufRinginstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newIOURingBufRinginstance allocated withBufferUtils. -
create
Returns a newIOURingBufRinginstance for the specified memory address. -
createSafe
-
malloc
Returns a newIOURingBufRing.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newIOURingBufRing.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newIOURingBufRing.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aIOURingBufRing.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newIOURingBufRinginstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newIOURingBufRinginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newIOURingBufRing.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newIOURingBufRing.Bufferinstance allocated on the specifiedMemoryStackand 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.
-