Package org.lwjgl.system.linux.liburing
Class IOURingMemRegionReg
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct io_uring_mem_region_reg {
__u64 region_uptr;
__u64 flags;
__u64 __resv[2];
}-
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 member offsets.static final intThe struct alignment in bytes.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
ConstructorsConstructorDescriptionIOURingMemRegionReg(ByteBuffer container) Creates aIOURingMemRegionReginstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic IOURingMemRegionRegcalloc()Returns a newIOURingMemRegionReginstance allocated withmemCalloc.static IOURingMemRegionReg.Buffercalloc(int capacity) Returns a newIOURingMemRegionReg.Bufferinstance allocated withmemCalloc.static IOURingMemRegionReg.Buffercalloc(int capacity, MemoryStack stack) Returns a newIOURingMemRegionReg.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingMemRegionRegcalloc(MemoryStack stack) Returns a newIOURingMemRegionReginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingMemRegionRegcreate()Returns a newIOURingMemRegionReginstance allocated withBufferUtils.static IOURingMemRegionReg.Buffercreate(int capacity) Returns a newIOURingMemRegionReg.Bufferinstance allocated withBufferUtils.static IOURingMemRegionRegcreate(long address) Returns a newIOURingMemRegionReginstance for the specified memory address.static IOURingMemRegionReg.Buffercreate(long address, int capacity) Create aIOURingMemRegionReg.Bufferinstance at the specified memory.static @Nullable IOURingMemRegionRegcreateSafe(long address) static @Nullable IOURingMemRegionReg.BuffercreateSafe(long address, int capacity) longflags()flags(long value) Sets the specified value to theflagsfield.static IOURingMemRegionRegmalloc()Returns a newIOURingMemRegionReginstance allocated withmemAlloc.static IOURingMemRegionReg.Buffermalloc(int capacity) Returns a newIOURingMemRegionReg.Bufferinstance allocated withmemAlloc.static IOURingMemRegionReg.Buffermalloc(int capacity, MemoryStack stack) Returns a newIOURingMemRegionReg.Bufferinstance allocated on the specifiedMemoryStack.static IOURingMemRegionRegmalloc(MemoryStack stack) Returns a newIOURingMemRegionReginstance allocated on the specifiedMemoryStack.static LongBuffern__resv(long struct) static longn__resv(long struct, int index) static voidn__resv(long struct, int index, long value) static voidn__resv(long struct, LongBuffer value) static longnflags(long struct) Unsafe version offlags().static voidnflags(long struct, long value) Unsafe version offlags.static longnregion_uptr(long struct) Unsafe version ofregion_uptr().static voidnregion_uptr(long struct, long value) Unsafe version ofregion_uptr.longregion_uptr(long value) Sets the specified value to theregion_uptrfield.set(long region_uptr, long flags) Initializes this struct with the specified values.set(IOURingMemRegionReg 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. -
REGION_UPTR
public static final int REGION_UPTRThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets. -
__RESV
public static final int __RESVThe struct member offsets.
-
-
Constructor Details
-
IOURingMemRegionReg
Creates aIOURingMemRegionReginstance 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<IOURingMemRegionReg>
-
region_uptr
public long region_uptr()- Returns:
- the value of the
region_uptrfield.
-
flags
public long flags()- Returns:
- the value of the
flagsfield.
-
region_uptr
Sets the specified value to theregion_uptrfield. -
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 newIOURingMemRegionReginstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newIOURingMemRegionReginstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newIOURingMemRegionReginstance allocated withBufferUtils. -
create
Returns a newIOURingMemRegionReginstance for the specified memory address. -
createSafe
-
malloc
Returns a newIOURingMemRegionReg.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newIOURingMemRegionReg.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newIOURingMemRegionReg.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aIOURingMemRegionReg.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newIOURingMemRegionReginstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newIOURingMemRegionReginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newIOURingMemRegionReg.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newIOURingMemRegionReg.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nregion_uptr
public static long nregion_uptr(long struct) Unsafe version ofregion_uptr(). -
nflags
public static long nflags(long struct) Unsafe version offlags(). -
n__resv
-
n__resv
public static long n__resv(long struct, int index) -
nregion_uptr
public static void nregion_uptr(long struct, long value) Unsafe version ofregion_uptr. -
nflags
public static void nflags(long struct, long value) Unsafe version offlags. -
n__resv
-
n__resv
public static void n__resv(long struct, int index, long value)
-