Package org.lwjgl.system.linux.liburing
Class IOURingBufReg
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct
org.lwjgl.system.linux.liburing.IOURingBufReg
- All Implemented Interfaces:
AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class IOURingBufReg
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
Argument for
IORING_(UN)REGISTER_PBUF_RING
.
Layout
struct io_uring_buf_reg {
__u64 ring_addr;
__u32 ring_entries;
__u16 bgid;
__u16 flags;
__u64 resv[3];
}
-
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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionIOURingBufReg
(ByteBuffer container) Creates aIOURingBufReg
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionshort
bgid()
bgid
(short value) Sets the specified value to thebgid
field.static IOURingBufReg
calloc()
Returns a newIOURingBufReg
instance allocated withmemCalloc
.static IOURingBufReg.Buffer
calloc
(int capacity) Returns a newIOURingBufReg.Buffer
instance allocated withmemCalloc
.static IOURingBufReg.Buffer
calloc
(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newIOURingBufReg.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOURingBufReg
calloc
(org.lwjgl.system.MemoryStack stack) Returns a newIOURingBufReg
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOURingBufReg
create()
Returns a newIOURingBufReg
instance allocated withBufferUtils
.static IOURingBufReg.Buffer
create
(int capacity) Returns a newIOURingBufReg.Buffer
instance allocated withBufferUtils
.static IOURingBufReg
create
(long address) Returns a newIOURingBufReg
instance for the specified memory address.static IOURingBufReg.Buffer
create
(long address, int capacity) Create aIOURingBufReg.Buffer
instance at the specified memory.static IOURingBufReg
createSafe
(long address) static IOURingBufReg.Buffer
createSafe
(long address, int capacity) short
flags()
flags
(short value) Sets the specified value to theflags
field.static IOURingBufReg
malloc()
Returns a newIOURingBufReg
instance allocated withmemAlloc
.static IOURingBufReg.Buffer
malloc
(int capacity) Returns a newIOURingBufReg.Buffer
instance allocated withmemAlloc
.static IOURingBufReg.Buffer
malloc
(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newIOURingBufReg.Buffer
instance allocated on the specifiedMemoryStack
.static IOURingBufReg
malloc
(org.lwjgl.system.MemoryStack stack) Returns a newIOURingBufReg
instance allocated on the specifiedMemoryStack
.static short
nbgid
(long struct) Unsafe version ofbgid()
.static void
nbgid
(long struct, short value) Unsafe version ofbgid
.static short
nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, short value) Unsafe version offlags
.static LongBuffer
nresv
(long struct) Unsafe version ofresv()
.static long
nresv
(long struct, int index) Unsafe version ofresv
.static void
nresv
(long struct, int index, long value) Unsafe version ofresv
.static void
nresv
(long struct, LongBuffer value) Unsafe version ofresv
.static long
nring_addr
(long struct) Unsafe version ofring_addr()
.static void
nring_addr
(long struct, long value) Unsafe version ofring_addr
.static int
nring_entries
(long struct) Unsafe version ofring_entries()
.static void
nring_entries
(long struct, int value) Unsafe version ofring_entries
.resv()
long
resv
(int index) resv
(int index, long value) Sets the specified value at the specified index of theresv
field.resv
(LongBuffer value) Copies the specifiedLongBuffer
to theresv
field.long
ring_addr
(long value) Sets the specified value to thering_addr
field.int
ring_entries
(int value) Sets the specified value to thering_entries
field.set
(long ring_addr, int ring_entries, short bgid, short flags, LongBuffer resv) Initializes this struct with the specified values.set
(IOURingBufReg src) Copies the specified struct data to this struct.int
sizeof()
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. -
RING_ADDR
public static final int RING_ADDRThe struct member offsets. -
RING_ENTRIES
public static final int RING_ENTRIESThe struct member offsets. -
BGID
public static final int BGIDThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets. -
RESV
public static final int RESVThe struct member offsets.
-
-
Constructor Details
-
IOURingBufReg
Creates aIOURingBufReg
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
-
ring_addr
public long ring_addr()- Returns:
- the value of the
ring_addr
field.
-
ring_entries
public int ring_entries()- Returns:
- the value of the
ring_entries
field.
-
bgid
public short bgid()- Returns:
- the value of the
bgid
field.
-
flags
public short flags()- Returns:
- the value of the
flags
field.
-
resv
- Returns:
- a
LongBuffer
view of theresv
field.
-
resv
public long resv(int index) - Returns:
- the value at the specified index of the
resv
field.
-
ring_addr
Sets the specified value to thering_addr
field. -
ring_entries
Sets the specified value to thering_entries
field. -
bgid
Sets the specified value to thebgid
field. -
flags
Sets the specified value to theflags
field. -
resv
Copies the specifiedLongBuffer
to theresv
field. -
resv
Sets the specified value at the specified index of theresv
field. -
set
public IOURingBufReg set(long ring_addr, int ring_entries, short bgid, short flags, LongBuffer resv) 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 newIOURingBufReg
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newIOURingBufReg
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newIOURingBufReg
instance allocated withBufferUtils
. -
create
Returns a newIOURingBufReg
instance for the specified memory address. -
createSafe
-
malloc
Returns a newIOURingBufReg.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newIOURingBufReg.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newIOURingBufReg.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aIOURingBufReg.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newIOURingBufReg
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newIOURingBufReg
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newIOURingBufReg.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newIOURingBufReg.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nring_addr
public static long nring_addr(long struct) Unsafe version ofring_addr()
. -
nring_entries
public static int nring_entries(long struct) Unsafe version ofring_entries()
. -
nbgid
public static short nbgid(long struct) Unsafe version ofbgid()
. -
nflags
public static short nflags(long struct) Unsafe version offlags()
. -
nresv
Unsafe version ofresv()
. -
nresv
public static long nresv(long struct, int index) Unsafe version ofresv
. -
nring_addr
public static void nring_addr(long struct, long value) Unsafe version ofring_addr
. -
nring_entries
public static void nring_entries(long struct, int value) Unsafe version ofring_entries
. -
nbgid
public static void nbgid(long struct, short value) Unsafe version ofbgid
. -
nflags
public static void nflags(long struct, short value) Unsafe version offlags
. -
nresv
Unsafe version ofresv
. -
nresv
public static void nresv(long struct, int index, long value) Unsafe version ofresv
.
-