Package org.lwjgl.system.linux.liburing
Class IOURingRSRCRegister
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct io_uring_rsrc_register {
__u32 nr;
__u32 flags;
__u64 resv2;
__u64 data;
__u64 tags;
}-
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
ConstructorsConstructorDescriptionIOURingRSRCRegister(ByteBuffer container) Creates aIOURingRSRCRegisterinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic IOURingRSRCRegistercalloc()Returns a newIOURingRSRCRegisterinstance allocated withmemCalloc.static IOURingRSRCRegister.Buffercalloc(int capacity) Returns a newIOURingRSRCRegister.Bufferinstance allocated withmemCalloc.static IOURingRSRCRegister.Buffercalloc(int capacity, MemoryStack stack) Returns a newIOURingRSRCRegister.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingRSRCRegistercalloc(MemoryStack stack) Returns a newIOURingRSRCRegisterinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingRSRCRegistercreate()Returns a newIOURingRSRCRegisterinstance allocated withBufferUtils.static IOURingRSRCRegister.Buffercreate(int capacity) Returns a newIOURingRSRCRegister.Bufferinstance allocated withBufferUtils.static IOURingRSRCRegistercreate(long address) Returns a newIOURingRSRCRegisterinstance for the specified memory address.static IOURingRSRCRegister.Buffercreate(long address, int capacity) Create aIOURingRSRCRegister.Bufferinstance at the specified memory.static @Nullable IOURingRSRCRegistercreateSafe(long address) static @Nullable IOURingRSRCRegister.BuffercreateSafe(long address, int capacity) longdata()data(long value) Sets the specified value to thedatafield.intflags()flags(int value) Sets the specified value to theflagsfield.static IOURingRSRCRegistermalloc()Returns a newIOURingRSRCRegisterinstance allocated withmemAlloc.static IOURingRSRCRegister.Buffermalloc(int capacity) Returns a newIOURingRSRCRegister.Bufferinstance allocated withmemAlloc.static IOURingRSRCRegister.Buffermalloc(int capacity, MemoryStack stack) Returns a newIOURingRSRCRegister.Bufferinstance allocated on the specifiedMemoryStack.static IOURingRSRCRegistermalloc(MemoryStack stack) Returns a newIOURingRSRCRegisterinstance allocated on the specifiedMemoryStack.static longndata(long struct) Unsafe version ofdata().static voidndata(long struct, long value) Unsafe version ofdata.static intnflags(long struct) Unsafe version offlags().static voidnflags(long struct, int value) Unsafe version offlags.static intnnr(long struct) Unsafe version ofnr().static voidnnr(long struct, int value) Unsafe version ofnr.intnr()nr(int value) Sets the specified value to thenrfield.static longnresv2(long struct) static voidnresv2(long struct, long value) static longntags(long struct) Unsafe version oftags().static voidntags(long struct, long value) Unsafe version oftags.set(int nr, int flags, long data, long tags) Initializes this struct with the specified values.set(IOURingRSRCRegister src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).longtags()tags(long value) Sets the specified value to thetagsfield.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. -
NR
public static final int NRThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets. -
RESV2
public static final int RESV2The struct member offsets. -
DATA
public static final int DATAThe struct member offsets. -
TAGS
public static final int TAGSThe struct member offsets.
-
-
Constructor Details
-
IOURingRSRCRegister
Creates aIOURingRSRCRegisterinstance 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<IOURingRSRCRegister>
-
nr
public int nr()- Returns:
- the value of the
nrfield.
-
flags
public int flags()- Returns:
- the value of the
flagsfield.
-
data
public long data()- Returns:
- the value of the
datafield.
-
tags
public long tags()- Returns:
- the value of the
tagsfield.
-
nr
Sets the specified value to thenrfield. -
flags
Sets the specified value to theflagsfield. -
data
Sets the specified value to thedatafield. -
tags
Sets the specified value to thetagsfield. -
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 newIOURingRSRCRegisterinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newIOURingRSRCRegisterinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newIOURingRSRCRegisterinstance allocated withBufferUtils. -
create
Returns a newIOURingRSRCRegisterinstance for the specified memory address. -
createSafe
-
malloc
Returns a newIOURingRSRCRegister.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newIOURingRSRCRegister.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newIOURingRSRCRegister.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aIOURingRSRCRegister.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newIOURingRSRCRegisterinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newIOURingRSRCRegisterinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newIOURingRSRCRegister.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newIOURingRSRCRegister.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nnr
public static int nnr(long struct) Unsafe version ofnr(). -
nflags
public static int nflags(long struct) Unsafe version offlags(). -
nresv2
public static long nresv2(long struct) -
ndata
public static long ndata(long struct) Unsafe version ofdata(). -
ntags
public static long ntags(long struct) Unsafe version oftags(). -
nnr
public static void nnr(long struct, int value) Unsafe version ofnr. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags. -
nresv2
public static void nresv2(long struct, long value) -
ndata
public static void ndata(long struct, long value) Unsafe version ofdata. -
ntags
public static void ntags(long struct, long value) Unsafe version oftags.
-