Package org.lwjgl.system.linux.liburing
Class IOURingRSRCUpdate2
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<IOURingRSRCUpdate2>
org.lwjgl.system.linux.liburing.IOURingRSRCUpdate2
- All Implemented Interfaces:
AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class IOURingRSRCUpdate2
extends org.lwjgl.system.Struct<IOURingRSRCUpdate2>
implements org.lwjgl.system.NativeResource
Layout
struct io_uring_rsrc_update2 {
__u32 offset;
__u32 resv;
__u64 data;
__u64 tags;
__u32 nr;
__u32 resv2;
}
-
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 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
ConstructorDescriptionIOURingRSRCUpdate2
(ByteBuffer container) Creates aIOURingRSRCUpdate2
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic IOURingRSRCUpdate2
calloc()
Returns a newIOURingRSRCUpdate2
instance allocated withmemCalloc
.static IOURingRSRCUpdate2.Buffer
calloc
(int capacity) Returns a newIOURingRSRCUpdate2.Buffer
instance allocated withmemCalloc
.static IOURingRSRCUpdate2.Buffer
calloc
(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newIOURingRSRCUpdate2.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOURingRSRCUpdate2
calloc
(org.lwjgl.system.MemoryStack stack) Returns a newIOURingRSRCUpdate2
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOURingRSRCUpdate2
create()
Returns a newIOURingRSRCUpdate2
instance allocated withBufferUtils
.static IOURingRSRCUpdate2.Buffer
create
(int capacity) Returns a newIOURingRSRCUpdate2.Buffer
instance allocated withBufferUtils
.static IOURingRSRCUpdate2
create
(long address) Returns a newIOURingRSRCUpdate2
instance for the specified memory address.static IOURingRSRCUpdate2.Buffer
create
(long address, int capacity) Create aIOURingRSRCUpdate2.Buffer
instance at the specified memory.static IOURingRSRCUpdate2
createSafe
(long address) static IOURingRSRCUpdate2.Buffer
createSafe
(long address, int capacity) long
data()
data
(long value) Sets the specified value to thedata
field.static IOURingRSRCUpdate2
malloc()
Returns a newIOURingRSRCUpdate2
instance allocated withmemAlloc
.static IOURingRSRCUpdate2.Buffer
malloc
(int capacity) Returns a newIOURingRSRCUpdate2.Buffer
instance allocated withmemAlloc
.static IOURingRSRCUpdate2.Buffer
malloc
(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newIOURingRSRCUpdate2.Buffer
instance allocated on the specifiedMemoryStack
.static IOURingRSRCUpdate2
malloc
(org.lwjgl.system.MemoryStack stack) Returns a newIOURingRSRCUpdate2
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
nnr
(long struct) Unsafe version ofnr()
.static void
nnr
(long struct, int value) Unsafe version ofnr
.static int
noffset
(long struct) Unsafe version ofoffset()
.static void
noffset
(long struct, int value) Unsafe version ofoffset
.int
nr()
nr
(int value) Sets the specified value to thenr
field.static int
nresv
(long struct) Unsafe version ofresv()
.static void
nresv
(long struct, int value) Unsafe version ofresv
.static int
nresv2
(long struct) Unsafe version ofresv2()
.static void
nresv2
(long struct, int value) Unsafe version ofresv2
.static long
ntags
(long struct) Unsafe version oftags()
.static void
ntags
(long struct, long value) Unsafe version oftags
.int
offset()
offset
(int value) Sets the specified value to theoffset
field.int
resv()
resv
(int value) Sets the specified value to theresv
field.int
resv2()
resv2
(int value) Sets the specified value to theresv2
field.set
(int offset, int resv, long data, long tags, int nr, int resv2) Initializes this struct with the specified values.set
(IOURingRSRCUpdate2 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. -
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. -
TAGS
public static final int TAGSThe struct member offsets. -
NR
public static final int NRThe struct member offsets. -
RESV2
public static final int RESV2The struct member offsets.
-
-
Constructor Details
-
IOURingRSRCUpdate2
Creates aIOURingRSRCUpdate2
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<IOURingRSRCUpdate2>
-
offset
public int offset()- Returns:
- the value of the
offset
field.
-
resv
public int resv()- Returns:
- the value of the
resv
field.
-
data
public long data()- Returns:
- the value of the
data
field.
-
tags
public long tags()- Returns:
- the value of the
tags
field.
-
nr
public int nr()- Returns:
- the value of the
nr
field.
-
resv2
public int resv2()- Returns:
- the value of the
resv2
field.
-
offset
Sets the specified value to theoffset
field. -
resv
Sets the specified value to theresv
field. -
data
Sets the specified value to thedata
field. -
tags
Sets the specified value to thetags
field. -
nr
Sets the specified value to thenr
field. -
resv2
Sets the specified value to theresv2
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 newIOURingRSRCUpdate2
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newIOURingRSRCUpdate2
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newIOURingRSRCUpdate2
instance allocated withBufferUtils
. -
create
Returns a newIOURingRSRCUpdate2
instance for the specified memory address. -
createSafe
-
malloc
Returns a newIOURingRSRCUpdate2.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newIOURingRSRCUpdate2.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newIOURingRSRCUpdate2.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aIOURingRSRCUpdate2.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newIOURingRSRCUpdate2
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newIOURingRSRCUpdate2
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newIOURingRSRCUpdate2.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newIOURingRSRCUpdate2.Buffer
instance allocated on the specifiedMemoryStack
and 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) Unsafe version ofresv()
. -
ndata
public static long ndata(long struct) Unsafe version ofdata()
. -
ntags
public static long ntags(long struct) Unsafe version oftags()
. -
nnr
public static int nnr(long struct) Unsafe version ofnr()
. -
nresv2
public static int nresv2(long struct) Unsafe version ofresv2()
. -
noffset
public static void noffset(long struct, int value) Unsafe version ofoffset
. -
nresv
public static void nresv(long struct, int value) Unsafe version ofresv
. -
ndata
public static void ndata(long struct, long value) Unsafe version ofdata
. -
ntags
public static void ntags(long struct, long value) Unsafe version oftags
. -
nnr
public static void nnr(long struct, int value) Unsafe version ofnr
. -
nresv2
public static void nresv2(long struct, int value) Unsafe version ofresv2
.
-