Package org.lwjgl.system.linux.liburing
Class IOURingRSRCRegister
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct
org.lwjgl.system.linux.liburing.IOURingRSRCRegister
- All Implemented Interfaces:
AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class IOURingRSRCRegister
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
Layout
struct io_uring_rsrc_register {
__u32 nr;
__u32 flags;
__u64 resv2;
__u64 data;
__u64 tags;
}
-
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
ConstructorDescriptionIOURingRSRCRegister
(ByteBuffer container) Creates aIOURingRSRCRegister
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic IOURingRSRCRegister
calloc()
Returns a newIOURingRSRCRegister
instance allocated withmemCalloc
.static IOURingRSRCRegister.Buffer
calloc
(int capacity) Returns a newIOURingRSRCRegister.Buffer
instance allocated withmemCalloc
.static IOURingRSRCRegister.Buffer
calloc
(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newIOURingRSRCRegister.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOURingRSRCRegister
calloc
(org.lwjgl.system.MemoryStack stack) Returns a newIOURingRSRCRegister
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOURingRSRCRegister
create()
Returns a newIOURingRSRCRegister
instance allocated withBufferUtils
.static IOURingRSRCRegister.Buffer
create
(int capacity) Returns a newIOURingRSRCRegister.Buffer
instance allocated withBufferUtils
.static IOURingRSRCRegister
create
(long address) Returns a newIOURingRSRCRegister
instance for the specified memory address.static IOURingRSRCRegister.Buffer
create
(long address, int capacity) Create aIOURingRSRCRegister.Buffer
instance at the specified memory.static IOURingRSRCRegister
createSafe
(long address) static IOURingRSRCRegister.Buffer
createSafe
(long address, int capacity) long
data()
data
(long value) Sets the specified value to thedata
field.int
flags()
flags
(int value) Sets the specified value to theflags
field.static IOURingRSRCRegister
malloc()
Returns a newIOURingRSRCRegister
instance allocated withmemAlloc
.static IOURingRSRCRegister.Buffer
malloc
(int capacity) Returns a newIOURingRSRCRegister.Buffer
instance allocated withmemAlloc
.static IOURingRSRCRegister.Buffer
malloc
(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newIOURingRSRCRegister.Buffer
instance allocated on the specifiedMemoryStack
.static IOURingRSRCRegister
malloc
(org.lwjgl.system.MemoryStack stack) Returns a newIOURingRSRCRegister
instance allocated on the specifiedMemoryStack
.static long
ndata
(long struct) Unsafe version ofdata()
.static void
ndata
(long struct, long value) Unsafe version ofdata
.static int
nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, int value) Unsafe version offlags
.static int
nnr
(long struct) Unsafe version ofnr()
.static void
nnr
(long struct, int value) Unsafe version ofnr
.int
nr()
nr
(int value) Sets the specified value to thenr
field.static long
nresv2
(long struct) Unsafe version ofresv2()
.static void
nresv2
(long struct, long value) Unsafe version ofresv2
.static long
ntags
(long struct) Unsafe version oftags()
.static void
ntags
(long struct, long value) Unsafe version oftags
.long
resv2()
resv2
(long value) Sets the specified value to theresv2
field.set
(int nr, int flags, long resv2, long data, long tags) Initializes this struct with the specified values.set
(IOURingRSRCRegister src) Copies the specified struct data to this struct.int
sizeof()
long
tags()
tags
(long value) Sets the specified value to thetags
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. -
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 aIOURingRSRCRegister
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
-
nr
public int nr()- Returns:
- the value of the
nr
field.
-
flags
public int flags()- Returns:
- the value of the
flags
field.
-
resv2
public long resv2()- Returns:
- the value of the
resv2
field.
-
data
public long data()- Returns:
- the value of the
data
field.
-
tags
public long tags()- Returns:
- the value of the
tags
field.
-
nr
Sets the specified value to thenr
field. -
flags
Sets the specified value to theflags
field. -
resv2
Sets the specified value to theresv2
field. -
data
Sets the specified value to thedata
field. -
tags
Sets the specified value to thetags
field. -
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 newIOURingRSRCRegister
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newIOURingRSRCRegister
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newIOURingRSRCRegister
instance allocated withBufferUtils
. -
create
Returns a newIOURingRSRCRegister
instance for the specified memory address. -
createSafe
-
malloc
Returns a newIOURingRSRCRegister.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newIOURingRSRCRegister.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newIOURingRSRCRegister.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aIOURingRSRCRegister.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newIOURingRSRCRegister
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newIOURingRSRCRegister
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newIOURingRSRCRegister.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newIOURingRSRCRegister.Buffer
instance allocated on the specifiedMemoryStack
and 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) Unsafe version ofresv2()
. -
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) Unsafe version ofresv2
. -
ndata
public static void ndata(long struct, long value) Unsafe version ofdata
. -
ntags
public static void ntags(long struct, long value) Unsafe version oftags
.
-