Package org.lwjgl.system.linux.liburing
Class IOURingBufReg
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct io_uring_buf_reg {
__u64 ring_addr;
__u32 ring_entries;
__u16 bgid;
__u16 flags;
__u64 resv[3];
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionIOURingBufReg(ByteBuffer container) Creates aIOURingBufReginstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionshortbgid()bgid(short value) Sets the specified value to thebgidfield.static IOURingBufRegcalloc()Returns a newIOURingBufReginstance allocated withmemCalloc.static IOURingBufReg.Buffercalloc(int capacity) Returns a newIOURingBufReg.Bufferinstance allocated withmemCalloc.static IOURingBufReg.Buffercalloc(int capacity, MemoryStack stack) Returns a newIOURingBufReg.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingBufRegcalloc(MemoryStack stack) Returns a newIOURingBufReginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingBufRegcreate()Returns a newIOURingBufReginstance allocated withBufferUtils.static IOURingBufReg.Buffercreate(int capacity) Returns a newIOURingBufReg.Bufferinstance allocated withBufferUtils.static IOURingBufRegcreate(long address) Returns a newIOURingBufReginstance for the specified memory address.static IOURingBufReg.Buffercreate(long address, int capacity) Create aIOURingBufReg.Bufferinstance at the specified memory.static @Nullable IOURingBufRegcreateSafe(long address) static @Nullable IOURingBufReg.BuffercreateSafe(long address, int capacity) shortflags()flags(short value) Sets the specified value to theflagsfield.static IOURingBufRegmalloc()Returns a newIOURingBufReginstance allocated withmemAlloc.static IOURingBufReg.Buffermalloc(int capacity) Returns a newIOURingBufReg.Bufferinstance allocated withmemAlloc.static IOURingBufReg.Buffermalloc(int capacity, MemoryStack stack) Returns a newIOURingBufReg.Bufferinstance allocated on the specifiedMemoryStack.static IOURingBufRegmalloc(MemoryStack stack) Returns a newIOURingBufReginstance allocated on the specifiedMemoryStack.static shortnbgid(long struct) Unsafe version ofbgid().static voidnbgid(long struct, short value) Unsafe version ofbgid.static shortnflags(long struct) Unsafe version offlags().static voidnflags(long struct, short value) Unsafe version offlags.static LongBuffernresv(long struct) static longnresv(long struct, int index) static voidnresv(long struct, int index, long value) static voidnresv(long struct, LongBuffer value) static longnring_addr(long struct) Unsafe version ofring_addr().static voidnring_addr(long struct, long value) Unsafe version ofring_addr.static intnring_entries(long struct) Unsafe version ofring_entries().static voidnring_entries(long struct, int value) Unsafe version ofring_entries.longring_addr(long value) Sets the specified value to thering_addrfield.intring_entries(int value) Sets the specified value to thering_entriesfield.set(long ring_addr, int ring_entries, short bgid, short flags) Initializes this struct with the specified values.set(IOURingBufReg src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 aIOURingBufReginstance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<IOURingBufReg>
-
ring_addr
public long ring_addr()- Returns:
- the value of the
ring_addrfield.
-
ring_entries
public int ring_entries()- Returns:
- the value of the
ring_entriesfield.
-
bgid
public short bgid()- Returns:
- the value of the
bgidfield.
-
flags
public short flags()- Returns:
- the value of the
flagsfield.
-
ring_addr
Sets the specified value to thering_addrfield. -
ring_entries
Sets the specified value to thering_entriesfield. -
bgid
Sets the specified value to thebgidfield. -
flags
Sets the specified value to theflagsfield. -
set
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 newIOURingBufReginstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newIOURingBufReginstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newIOURingBufReginstance allocated withBufferUtils. -
create
Returns a newIOURingBufReginstance for the specified memory address. -
createSafe
-
malloc
Returns a newIOURingBufReg.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newIOURingBufReg.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newIOURingBufReg.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aIOURingBufReg.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newIOURingBufReginstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newIOURingBufReginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newIOURingBufReg.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newIOURingBufReg.Bufferinstance allocated on the specifiedMemoryStackand 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
-
nresv
public static long nresv(long struct, int index) -
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
-
nresv
public static void nresv(long struct, int index, long value)
-