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.NativeResourceLayout
struct io_uring_rsrc_update { __u32 offset; __u32 resv; __u64 data; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIOURingRSRCUpdate.BufferAn array ofIOURingRSRCUpdatestructs.
-
Constructor Summary
Constructors Constructor Description IOURingRSRCUpdate(java.nio.ByteBuffer container)Creates aIOURingRSRCUpdateinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IOURingRSRCUpdatecalloc()Returns a newIOURingRSRCUpdateinstance allocated withmemCalloc.static IOURingRSRCUpdate.Buffercalloc(int capacity)Returns a newIOURingRSRCUpdate.Bufferinstance allocated withmemCalloc.static IOURingRSRCUpdate.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newIOURingRSRCUpdate.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingRSRCUpdatecalloc(org.lwjgl.system.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 IOURingRSRCUpdatecreateSafe(long address)static IOURingRSRCUpdate.BuffercreateSafe(long address, int capacity)longdata()IOURingRSRCUpdatedata(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, org.lwjgl.system.MemoryStack stack)Returns a newIOURingRSRCUpdate.Bufferinstance allocated on the specifiedMemoryStack.static IOURingRSRCUpdatemalloc(org.lwjgl.system.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)Unsafe version ofresv().static voidnresv(long struct, int value)Unsafe version ofresv.intoffset()IOURingRSRCUpdateoffset(int value)Sets the specified value to theoffsetfield.intresv()IOURingRSRCUpdateresv(int value)Sets the specified value to theresvfield.IOURingRSRCUpdateset(int offset, int resv, long data)Initializes this struct with the specified values.IOURingRSRCUpdateset(IOURingRSRCUpdate src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
IOURingRSRCUpdate
public IOURingRSRCUpdate(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
offset
public int offset()
- Returns:
- the value of the
offsetfield.
-
resv
public int resv()
- Returns:
- the value of the
resvfield.
-
data
public long data()
- Returns:
- the value of the
datafield.
-
offset
public IOURingRSRCUpdate offset(int value)
Sets the specified value to theoffsetfield.
-
resv
public IOURingRSRCUpdate resv(int value)
Sets the specified value to theresvfield.
-
data
public IOURingRSRCUpdate data(long value)
Sets the specified value to thedatafield.
-
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 newIOURingRSRCUpdateinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static IOURingRSRCUpdate calloc()
Returns a newIOURingRSRCUpdateinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static IOURingRSRCUpdate create()
Returns a newIOURingRSRCUpdateinstance allocated withBufferUtils.
-
create
public static IOURingRSRCUpdate create(long address)
Returns a newIOURingRSRCUpdateinstance for the specified memory address.
-
createSafe
@Nullable public static IOURingRSRCUpdate createSafe(long address)
-
malloc
public static IOURingRSRCUpdate.Buffer malloc(int capacity)
Returns a newIOURingRSRCUpdate.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static IOURingRSRCUpdate.Buffer calloc(int capacity)
Returns a newIOURingRSRCUpdate.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static IOURingRSRCUpdate.Buffer create(int capacity)
Returns a newIOURingRSRCUpdate.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static IOURingRSRCUpdate.Buffer create(long address, int capacity)
Create aIOURingRSRCUpdate.Bufferinstance 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 newIOURingRSRCUpdateinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static IOURingRSRCUpdate calloc(org.lwjgl.system.MemoryStack stack)
Returns a newIOURingRSRCUpdateinstance allocated on the specifiedMemoryStackand 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.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand 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.
-
-