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:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class IOURingRSRCRegister extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct io_uring_rsrc_register { __u32 nr; __u32 resv; __u64 resv2; __u64 data; __u64 tags; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIOURingRSRCRegister.BufferAn array ofIOURingRSRCRegisterstructs.
-
Constructor Summary
Constructors Constructor Description IOURingRSRCRegister(java.nio.ByteBuffer container)Creates aIOURingRSRCRegisterinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IOURingRSRCRegistercalloc()Returns a newIOURingRSRCRegisterinstance allocated withmemCalloc.static IOURingRSRCRegister.Buffercalloc(int capacity)Returns a newIOURingRSRCRegister.Bufferinstance allocated withmemCalloc.static IOURingRSRCRegister.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newIOURingRSRCRegister.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingRSRCRegistercalloc(org.lwjgl.system.MemoryStack stack)Returns a newIOURingRSRCRegisterinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingRSRCRegistercreate()Returns a newIOURingRSRCRegisterinstance allocated withBufferUtils.static IOURingRSRCRegister.Buffercreate(int capacity)Returns a newIOURingRSRCRegister.Bufferinstance allocated withBufferUtils.static IOURingRSRCRegistercreate(long address)Returns a newIOURingRSRCRegisterinstance for the specified memory address.static IOURingRSRCRegister.Buffercreate(long address, int capacity)Create aIOURingRSRCRegister.Bufferinstance at the specified memory.static IOURingRSRCRegistercreateSafe(long address)static IOURingRSRCRegister.BuffercreateSafe(long address, int capacity)longdata()IOURingRSRCRegisterdata(long value)Sets the specified value to thedatafield.static IOURingRSRCRegistermalloc()Returns a newIOURingRSRCRegisterinstance allocated withmemAlloc.static IOURingRSRCRegister.Buffermalloc(int capacity)Returns a newIOURingRSRCRegister.Bufferinstance allocated withmemAlloc.static IOURingRSRCRegister.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newIOURingRSRCRegister.Bufferinstance allocated on the specifiedMemoryStack.static IOURingRSRCRegistermalloc(org.lwjgl.system.MemoryStack stack)Returns a newIOURingRSRCRegisterinstance 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.intnr()IOURingRSRCRegisternr(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 longnresv2(long struct)Unsafe version ofresv2().static voidnresv2(long struct, long value)Unsafe version ofresv2.static longntags(long struct)Unsafe version oftags().static voidntags(long struct, long value)Unsafe version oftags.intresv()IOURingRSRCRegisterresv(int value)Sets the specified value to theresvfield.longresv2()IOURingRSRCRegisterresv2(long value)Sets the specified value to theresv2field.IOURingRSRCRegisterset(int nr, int resv, long resv2, long data, long tags)Initializes this struct with the specified values.IOURingRSRCRegisterset(IOURingRSRCRegister src)Copies the specified struct data to this struct.intsizeof()longtags()IOURingRSRCRegistertags(long value)Sets the specified value to thetagsfield.
-
-
-
Constructor Detail
-
IOURingRSRCRegister
public IOURingRSRCRegister(java.nio.ByteBuffer container)
Creates aIOURingRSRCRegisterinstance 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
-
nr
public int nr()
- Returns:
- the value of the
nrfield.
-
resv
public int resv()
- Returns:
- the value of the
resvfield.
-
resv2
public long resv2()
- Returns:
- the value of the
resv2field.
-
data
public long data()
- Returns:
- the value of the
datafield.
-
tags
public long tags()
- Returns:
- the value of the
tagsfield.
-
nr
public IOURingRSRCRegister nr(int value)
Sets the specified value to thenrfield.
-
resv
public IOURingRSRCRegister resv(int value)
Sets the specified value to theresvfield.
-
resv2
public IOURingRSRCRegister resv2(long value)
Sets the specified value to theresv2field.
-
data
public IOURingRSRCRegister data(long value)
Sets the specified value to thedatafield.
-
tags
public IOURingRSRCRegister tags(long value)
Sets the specified value to thetagsfield.
-
set
public IOURingRSRCRegister set(int nr, int resv, long resv2, long data, long tags)
Initializes this struct with the specified values.
-
set
public IOURingRSRCRegister set(IOURingRSRCRegister src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static IOURingRSRCRegister malloc()
Returns a newIOURingRSRCRegisterinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static IOURingRSRCRegister calloc()
Returns a newIOURingRSRCRegisterinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static IOURingRSRCRegister create()
Returns a newIOURingRSRCRegisterinstance allocated withBufferUtils.
-
create
public static IOURingRSRCRegister create(long address)
Returns a newIOURingRSRCRegisterinstance for the specified memory address.
-
createSafe
@Nullable public static IOURingRSRCRegister createSafe(long address)
-
malloc
public static IOURingRSRCRegister.Buffer malloc(int capacity)
Returns a newIOURingRSRCRegister.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static IOURingRSRCRegister.Buffer calloc(int capacity)
Returns a newIOURingRSRCRegister.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static IOURingRSRCRegister.Buffer create(int capacity)
Returns a newIOURingRSRCRegister.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static IOURingRSRCRegister.Buffer create(long address, int capacity)
Create aIOURingRSRCRegister.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static IOURingRSRCRegister.Buffer createSafe(long address, int capacity)
-
malloc
public static IOURingRSRCRegister malloc(org.lwjgl.system.MemoryStack stack)
Returns a newIOURingRSRCRegisterinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static IOURingRSRCRegister calloc(org.lwjgl.system.MemoryStack stack)
Returns a newIOURingRSRCRegisterinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static IOURingRSRCRegister.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newIOURingRSRCRegister.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static IOURingRSRCRegister.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newIOURingRSRCRegister.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nnr
public static int nnr(long struct)
Unsafe version ofnr().
-
nresv
public static int nresv(long struct)
Unsafe version ofresv().
-
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.
-
nresv
public static void nresv(long struct, int value)Unsafe version ofresv.
-
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.
-
-