Package org.lwjgl.system.linux.liburing
Class IOURingBufStatus
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct io_uring_buf_status {
__u32 buf_group;
__u32 head;
__u32 resv[8];
}-
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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionIOURingBufStatus(ByteBuffer container) Creates aIOURingBufStatusinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintbuf_group(int value) Sets the specified value to thebuf_groupfield.static IOURingBufStatuscalloc()Returns a newIOURingBufStatusinstance allocated withmemCalloc.static IOURingBufStatus.Buffercalloc(int capacity) Returns a newIOURingBufStatus.Bufferinstance allocated withmemCalloc.static IOURingBufStatus.Buffercalloc(int capacity, MemoryStack stack) Returns a newIOURingBufStatus.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingBufStatuscalloc(MemoryStack stack) Returns a newIOURingBufStatusinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingBufStatuscreate()Returns a newIOURingBufStatusinstance allocated withBufferUtils.static IOURingBufStatus.Buffercreate(int capacity) Returns a newIOURingBufStatus.Bufferinstance allocated withBufferUtils.static IOURingBufStatuscreate(long address) Returns a newIOURingBufStatusinstance for the specified memory address.static IOURingBufStatus.Buffercreate(long address, int capacity) Create aIOURingBufStatus.Bufferinstance at the specified memory.static @Nullable IOURingBufStatuscreateSafe(long address) static @Nullable IOURingBufStatus.BuffercreateSafe(long address, int capacity) inthead()head(int value) Sets the specified value to theheadfield.static IOURingBufStatusmalloc()Returns a newIOURingBufStatusinstance allocated withmemAlloc.static IOURingBufStatus.Buffermalloc(int capacity) Returns a newIOURingBufStatus.Bufferinstance allocated withmemAlloc.static IOURingBufStatus.Buffermalloc(int capacity, MemoryStack stack) Returns a newIOURingBufStatus.Bufferinstance allocated on the specifiedMemoryStack.static IOURingBufStatusmalloc(MemoryStack stack) Returns a newIOURingBufStatusinstance allocated on the specifiedMemoryStack.static intnbuf_group(long struct) Unsafe version ofbuf_group().static voidnbuf_group(long struct, int value) Unsafe version ofbuf_group.static intnhead(long struct) Unsafe version ofhead().static voidnhead(long struct, int value) Unsafe version ofhead.static IntBuffernresv(long struct) static intnresv(long struct, int index) static voidnresv(long struct, int index, int value) static voidset(int buf_group, int head) Initializes this struct with the specified values.set(IOURingBufStatus src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).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. -
BUF_GROUP
public static final int BUF_GROUPThe struct member offsets. -
HEAD
public static final int HEADThe struct member offsets. -
RESV
public static final int RESVThe struct member offsets.
-
-
Constructor Details
-
IOURingBufStatus
Creates aIOURingBufStatusinstance 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<IOURingBufStatus>
-
buf_group
public int buf_group()- Returns:
- the value of the
buf_groupfield.
-
head
public int head()- Returns:
- the value of the
headfield.
-
buf_group
Sets the specified value to thebuf_groupfield. -
head
Sets the specified value to theheadfield. -
set
Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newIOURingBufStatusinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newIOURingBufStatusinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newIOURingBufStatusinstance allocated withBufferUtils. -
create
Returns a newIOURingBufStatusinstance for the specified memory address. -
createSafe
-
malloc
Returns a newIOURingBufStatus.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newIOURingBufStatus.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newIOURingBufStatus.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aIOURingBufStatus.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newIOURingBufStatusinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newIOURingBufStatusinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newIOURingBufStatus.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newIOURingBufStatus.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nbuf_group
public static int nbuf_group(long struct) Unsafe version ofbuf_group(). -
nhead
public static int nhead(long struct) Unsafe version ofhead(). -
nresv
-
nresv
public static int nresv(long struct, int index) -
nbuf_group
public static void nbuf_group(long struct, int value) Unsafe version ofbuf_group. -
nhead
public static void nhead(long struct, int value) Unsafe version ofhead. -
nresv
-
nresv
public static void nresv(long struct, int index, int value)
-