Package org.lwjgl.system.linux.liburing
Class IOURingRSRCUpdate
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.system.linux.liburing.IOURingRSRCUpdate
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class IOURingRSRCUpdate extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Layout
struct io_uring_rsrc_update { __u32 offset; __u32 resv; __u64 data; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IOURingRSRCUpdate.Buffer
An array ofIOURingRSRCUpdate
structs.
-
Constructor Summary
Constructors Constructor Description IOURingRSRCUpdate(java.nio.ByteBuffer container)
Creates aIOURingRSRCUpdate
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IOURingRSRCUpdate
calloc()
Returns a newIOURingRSRCUpdate
instance allocated withmemCalloc
.static IOURingRSRCUpdate.Buffer
calloc(int capacity)
Returns a newIOURingRSRCUpdate.Buffer
instance allocated withmemCalloc
.static IOURingRSRCUpdate.Buffer
calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newIOURingRSRCUpdate.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOURingRSRCUpdate
calloc(org.lwjgl.system.MemoryStack stack)
Returns a newIOURingRSRCUpdate
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOURingRSRCUpdate
create()
Returns a newIOURingRSRCUpdate
instance allocated withBufferUtils
.static IOURingRSRCUpdate.Buffer
create(int capacity)
Returns a newIOURingRSRCUpdate.Buffer
instance allocated withBufferUtils
.static IOURingRSRCUpdate
create(long address)
Returns a newIOURingRSRCUpdate
instance for the specified memory address.static IOURingRSRCUpdate.Buffer
create(long address, int capacity)
Create aIOURingRSRCUpdate.Buffer
instance at the specified memory.static IOURingRSRCUpdate
createSafe(long address)
static IOURingRSRCUpdate.Buffer
createSafe(long address, int capacity)
long
data()
IOURingRSRCUpdate
data(long value)
Sets the specified value to thedata
field.static IOURingRSRCUpdate
malloc()
Returns a newIOURingRSRCUpdate
instance allocated withmemAlloc
.static IOURingRSRCUpdate.Buffer
malloc(int capacity)
Returns a newIOURingRSRCUpdate.Buffer
instance allocated withmemAlloc
.static IOURingRSRCUpdate.Buffer
malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newIOURingRSRCUpdate.Buffer
instance allocated on the specifiedMemoryStack
.static IOURingRSRCUpdate
malloc(org.lwjgl.system.MemoryStack stack)
Returns a newIOURingRSRCUpdate
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
noffset(long struct)
Unsafe version ofoffset()
.static void
noffset(long struct, int value)
Unsafe version ofoffset
.static int
nresv(long struct)
Unsafe version ofresv()
.static void
nresv(long struct, int value)
Unsafe version ofresv
.int
offset()
IOURingRSRCUpdate
offset(int value)
Sets the specified value to theoffset
field.int
resv()
IOURingRSRCUpdate
resv(int value)
Sets the specified value to theresv
field.IOURingRSRCUpdate
set(int offset, int resv, long data)
Initializes this struct with the specified values.IOURingRSRCUpdate
set(IOURingRSRCUpdate src)
Copies the specified struct data to this struct.int
sizeof()
-
-
-
Constructor Detail
-
IOURingRSRCUpdate
public IOURingRSRCUpdate(java.nio.ByteBuffer container)
Creates aIOURingRSRCUpdate
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
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.
-
offset
public IOURingRSRCUpdate offset(int value)
Sets the specified value to theoffset
field.
-
resv
public IOURingRSRCUpdate resv(int value)
Sets the specified value to theresv
field.
-
data
public IOURingRSRCUpdate data(long value)
Sets the specified value to thedata
field.
-
set
public IOURingRSRCUpdate set(int offset, int resv, long data)
Initializes this struct with the specified values.
-
set
public IOURingRSRCUpdate set(IOURingRSRCUpdate src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static IOURingRSRCUpdate malloc()
Returns a newIOURingRSRCUpdate
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static IOURingRSRCUpdate calloc()
Returns a newIOURingRSRCUpdate
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static IOURingRSRCUpdate create()
Returns a newIOURingRSRCUpdate
instance allocated withBufferUtils
.
-
create
public static IOURingRSRCUpdate create(long address)
Returns a newIOURingRSRCUpdate
instance for the specified memory address.
-
createSafe
@Nullable public static IOURingRSRCUpdate createSafe(long address)
-
malloc
public static IOURingRSRCUpdate.Buffer malloc(int capacity)
Returns a newIOURingRSRCUpdate.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static IOURingRSRCUpdate.Buffer calloc(int capacity)
Returns a newIOURingRSRCUpdate.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static IOURingRSRCUpdate.Buffer create(int capacity)
Returns a newIOURingRSRCUpdate.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static IOURingRSRCUpdate.Buffer create(long address, int capacity)
Create aIOURingRSRCUpdate.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static IOURingRSRCUpdate.Buffer createSafe(long address, int capacity)
-
malloc
public static IOURingRSRCUpdate malloc(org.lwjgl.system.MemoryStack stack)
Returns a newIOURingRSRCUpdate
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
public static IOURingRSRCUpdate calloc(org.lwjgl.system.MemoryStack stack)
Returns a newIOURingRSRCUpdate
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
public static IOURingRSRCUpdate.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newIOURingRSRCUpdate.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
calloc
public static IOURingRSRCUpdate.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newIOURingRSRCUpdate.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
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()
.
-
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
.
-
-