Package org.lwjgl.system.linux.liburing
Class IOURingRSRCUpdate
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct io_uring_rsrc_update {
__u32 offset;
__u32 resv;
__u64 data;
}-
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
ConstructorsConstructorDescriptionIOURingRSRCUpdate(ByteBuffer container) Creates aIOURingRSRCUpdateinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic IOURingRSRCUpdatecalloc()Returns a newIOURingRSRCUpdateinstance allocated withmemCalloc.static IOURingRSRCUpdate.Buffercalloc(int capacity) Returns a newIOURingRSRCUpdate.Bufferinstance allocated withmemCalloc.static IOURingRSRCUpdate.Buffercalloc(int capacity, MemoryStack stack) Returns a newIOURingRSRCUpdate.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingRSRCUpdatecalloc(MemoryStack stack) Returns a newIOURingRSRCUpdateinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingRSRCUpdatecreate()Returns a newIOURingRSRCUpdateinstance allocated withBufferUtils.static IOURingRSRCUpdate.Buffercreate(int capacity) Returns a newIOURingRSRCUpdate.Bufferinstance allocated withBufferUtils.static IOURingRSRCUpdatecreate(long address) Returns a newIOURingRSRCUpdateinstance for the specified memory address.static IOURingRSRCUpdate.Buffercreate(long address, int capacity) Create aIOURingRSRCUpdate.Bufferinstance at the specified memory.static @Nullable IOURingRSRCUpdatecreateSafe(long address) static @Nullable IOURingRSRCUpdate.BuffercreateSafe(long address, int capacity) longdata()data(long value) Sets the specified value to thedatafield.static IOURingRSRCUpdatemalloc()Returns a newIOURingRSRCUpdateinstance allocated withmemAlloc.static IOURingRSRCUpdate.Buffermalloc(int capacity) Returns a newIOURingRSRCUpdate.Bufferinstance allocated withmemAlloc.static IOURingRSRCUpdate.Buffermalloc(int capacity, MemoryStack stack) Returns a newIOURingRSRCUpdate.Bufferinstance allocated on the specifiedMemoryStack.static IOURingRSRCUpdatemalloc(MemoryStack stack) Returns a newIOURingRSRCUpdateinstance allocated on the specifiedMemoryStack.static longndata(long struct) Unsafe version ofdata().static voidndata(long struct, long value) Unsafe version ofdata.static intnoffset(long struct) Unsafe version ofoffset().static voidnoffset(long struct, int value) Unsafe version ofoffset.static intnresv(long struct) static voidnresv(long struct, int value) intoffset()offset(int value) Sets the specified value to theoffsetfield.set(int offset, long data) Initializes this struct with the specified values.set(IOURingRSRCUpdate 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. -
OFFSET
public static final int OFFSETThe struct member offsets. -
RESV
public static final int RESVThe struct member offsets. -
DATA
public static final int DATAThe struct member offsets.
-
-
Constructor Details
-
IOURingRSRCUpdate
Creates aIOURingRSRCUpdateinstance 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<IOURingRSRCUpdate>
-
offset
public int offset()- Returns:
- the value of the
offsetfield.
-
data
public long data()- Returns:
- the value of the
datafield.
-
offset
Sets the specified value to theoffsetfield. -
data
Sets the specified value to thedatafield. -
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 newIOURingRSRCUpdateinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newIOURingRSRCUpdateinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newIOURingRSRCUpdateinstance allocated withBufferUtils. -
create
Returns a newIOURingRSRCUpdateinstance for the specified memory address. -
createSafe
-
malloc
Returns a newIOURingRSRCUpdate.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newIOURingRSRCUpdate.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newIOURingRSRCUpdate.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aIOURingRSRCUpdate.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newIOURingRSRCUpdateinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newIOURingRSRCUpdateinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newIOURingRSRCUpdate.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newIOURingRSRCUpdate.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
noffset
public static int noffset(long struct) Unsafe version ofoffset(). -
nresv
public static int nresv(long struct) -
ndata
public static long ndata(long struct) Unsafe version ofdata(). -
noffset
public static void noffset(long struct, int value) Unsafe version ofoffset. -
nresv
public static void nresv(long struct, int value) -
ndata
public static void ndata(long struct, long value) Unsafe version ofdata.
-