Package org.lwjgl.system.linux.liburing
Class IOURingRSRCUpdate2
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.system.linux.liburing.IOURingRSRCUpdate2
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class IOURingRSRCUpdate2 extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct io_uring_rsrc_update2 { __u32 offset; __u32 resv; __u64 data; __u64 tags; __u32 nr; __u32 resv2; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIOURingRSRCUpdate2.BufferAn array ofIOURingRSRCUpdate2structs.
-
Constructor Summary
Constructors Constructor Description IOURingRSRCUpdate2(java.nio.ByteBuffer container)Creates aIOURingRSRCUpdate2instance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IOURingRSRCUpdate2calloc()Returns a newIOURingRSRCUpdate2instance allocated withmemCalloc.static IOURingRSRCUpdate2.Buffercalloc(int capacity)Returns a newIOURingRSRCUpdate2.Bufferinstance allocated withmemCalloc.static IOURingRSRCUpdate2.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newIOURingRSRCUpdate2.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingRSRCUpdate2calloc(org.lwjgl.system.MemoryStack stack)Returns a newIOURingRSRCUpdate2instance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingRSRCUpdate2create()Returns a newIOURingRSRCUpdate2instance allocated withBufferUtils.static IOURingRSRCUpdate2.Buffercreate(int capacity)Returns a newIOURingRSRCUpdate2.Bufferinstance allocated withBufferUtils.static IOURingRSRCUpdate2create(long address)Returns a newIOURingRSRCUpdate2instance for the specified memory address.static IOURingRSRCUpdate2.Buffercreate(long address, int capacity)Create aIOURingRSRCUpdate2.Bufferinstance at the specified memory.static IOURingRSRCUpdate2createSafe(long address)static IOURingRSRCUpdate2.BuffercreateSafe(long address, int capacity)longdata()IOURingRSRCUpdate2data(long value)Sets the specified value to thedatafield.static IOURingRSRCUpdate2malloc()Returns a newIOURingRSRCUpdate2instance allocated withmemAlloc.static IOURingRSRCUpdate2.Buffermalloc(int capacity)Returns a newIOURingRSRCUpdate2.Bufferinstance allocated withmemAlloc.static IOURingRSRCUpdate2.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newIOURingRSRCUpdate2.Bufferinstance allocated on the specifiedMemoryStack.static IOURingRSRCUpdate2malloc(org.lwjgl.system.MemoryStack stack)Returns a newIOURingRSRCUpdate2instance allocated on the specifiedMemoryStack.static longndata(long struct)Unsafe version ofdata().static voidndata(long struct, long value)Unsafe version ofdata.static intnnr(long struct)Unsafe version ofnr().static voidnnr(long struct, int value)Unsafe version ofnr.static intnoffset(long struct)Unsafe version ofoffset().static voidnoffset(long struct, int value)Unsafe version ofoffset.intnr()IOURingRSRCUpdate2nr(int value)Sets the specified value to thenrfield.static intnresv(long struct)Unsafe version ofresv().static voidnresv(long struct, int value)Unsafe version ofresv.static intnresv2(long struct)Unsafe version ofresv2().static voidnresv2(long struct, int value)Unsafe version ofresv2.static longntags(long struct)Unsafe version oftags().static voidntags(long struct, long value)Unsafe version oftags.intoffset()IOURingRSRCUpdate2offset(int value)Sets the specified value to theoffsetfield.intresv()IOURingRSRCUpdate2resv(int value)Sets the specified value to theresvfield.intresv2()IOURingRSRCUpdate2resv2(int value)Sets the specified value to theresv2field.IOURingRSRCUpdate2set(int offset, int resv, long data, long tags, int nr, int resv2)Initializes this struct with the specified values.IOURingRSRCUpdate2set(IOURingRSRCUpdate2 src)Copies the specified struct data to this struct.intsizeof()longtags()IOURingRSRCUpdate2tags(long value)Sets the specified value to thetagsfield.
-
-
-
Constructor Detail
-
IOURingRSRCUpdate2
public IOURingRSRCUpdate2(java.nio.ByteBuffer container)
Creates aIOURingRSRCUpdate2instance 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.
-
tags
public long tags()
- Returns:
- the value of the
tagsfield.
-
nr
public int nr()
- Returns:
- the value of the
nrfield.
-
resv2
public int resv2()
- Returns:
- the value of the
resv2field.
-
offset
public IOURingRSRCUpdate2 offset(int value)
Sets the specified value to theoffsetfield.
-
resv
public IOURingRSRCUpdate2 resv(int value)
Sets the specified value to theresvfield.
-
data
public IOURingRSRCUpdate2 data(long value)
Sets the specified value to thedatafield.
-
tags
public IOURingRSRCUpdate2 tags(long value)
Sets the specified value to thetagsfield.
-
nr
public IOURingRSRCUpdate2 nr(int value)
Sets the specified value to thenrfield.
-
resv2
public IOURingRSRCUpdate2 resv2(int value)
Sets the specified value to theresv2field.
-
set
public IOURingRSRCUpdate2 set(int offset, int resv, long data, long tags, int nr, int resv2)
Initializes this struct with the specified values.
-
set
public IOURingRSRCUpdate2 set(IOURingRSRCUpdate2 src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static IOURingRSRCUpdate2 malloc()
Returns a newIOURingRSRCUpdate2instance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static IOURingRSRCUpdate2 calloc()
Returns a newIOURingRSRCUpdate2instance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static IOURingRSRCUpdate2 create()
Returns a newIOURingRSRCUpdate2instance allocated withBufferUtils.
-
create
public static IOURingRSRCUpdate2 create(long address)
Returns a newIOURingRSRCUpdate2instance for the specified memory address.
-
createSafe
@Nullable public static IOURingRSRCUpdate2 createSafe(long address)
-
malloc
public static IOURingRSRCUpdate2.Buffer malloc(int capacity)
Returns a newIOURingRSRCUpdate2.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static IOURingRSRCUpdate2.Buffer calloc(int capacity)
Returns a newIOURingRSRCUpdate2.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static IOURingRSRCUpdate2.Buffer create(int capacity)
Returns a newIOURingRSRCUpdate2.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static IOURingRSRCUpdate2.Buffer create(long address, int capacity)
Create aIOURingRSRCUpdate2.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static IOURingRSRCUpdate2.Buffer createSafe(long address, int capacity)
-
malloc
public static IOURingRSRCUpdate2 malloc(org.lwjgl.system.MemoryStack stack)
Returns a newIOURingRSRCUpdate2instance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static IOURingRSRCUpdate2 calloc(org.lwjgl.system.MemoryStack stack)
Returns a newIOURingRSRCUpdate2instance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static IOURingRSRCUpdate2.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newIOURingRSRCUpdate2.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static IOURingRSRCUpdate2.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newIOURingRSRCUpdate2.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().
-
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.
-
-