Package org.lwjgl.system.linux.liburing
Class IOURingCloneBuffers
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct io_uring_clone_buffers {
__u32 src_fd;
__u32 flags;
__u32 src_off;
__u32 dst_off;
__u32 nr;
__u32 pad[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 size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionIOURingCloneBuffers(ByteBuffer container) Creates aIOURingCloneBuffersinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic IOURingCloneBufferscalloc()Returns a newIOURingCloneBuffersinstance allocated withmemCalloc.static IOURingCloneBuffers.Buffercalloc(int capacity) Returns a newIOURingCloneBuffers.Bufferinstance allocated withmemCalloc.static IOURingCloneBuffers.Buffercalloc(int capacity, MemoryStack stack) Returns a newIOURingCloneBuffers.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingCloneBufferscalloc(MemoryStack stack) Returns a newIOURingCloneBuffersinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingCloneBufferscreate()Returns a newIOURingCloneBuffersinstance allocated withBufferUtils.static IOURingCloneBuffers.Buffercreate(int capacity) Returns a newIOURingCloneBuffers.Bufferinstance allocated withBufferUtils.static IOURingCloneBufferscreate(long address) Returns a newIOURingCloneBuffersinstance for the specified memory address.static IOURingCloneBuffers.Buffercreate(long address, int capacity) Create aIOURingCloneBuffers.Bufferinstance at the specified memory.static @Nullable IOURingCloneBufferscreateSafe(long address) static @Nullable IOURingCloneBuffers.BuffercreateSafe(long address, int capacity) intdst_off()dst_off(int value) Sets the specified value to thedst_offfield.intflags()flags(int value) Sets the specified value to theflagsfield.static IOURingCloneBuffersmalloc()Returns a newIOURingCloneBuffersinstance allocated withmemAlloc.static IOURingCloneBuffers.Buffermalloc(int capacity) Returns a newIOURingCloneBuffers.Bufferinstance allocated withmemAlloc.static IOURingCloneBuffers.Buffermalloc(int capacity, MemoryStack stack) Returns a newIOURingCloneBuffers.Bufferinstance allocated on the specifiedMemoryStack.static IOURingCloneBuffersmalloc(MemoryStack stack) Returns a newIOURingCloneBuffersinstance allocated on the specifiedMemoryStack.static intndst_off(long struct) Unsafe version ofdst_off().static voidndst_off(long struct, int value) Unsafe version ofdst_off.static intnflags(long struct) Unsafe version offlags().static voidnflags(long struct, int value) Unsafe version offlags.static intnnr(long struct) Unsafe version ofnr().static voidnnr(long struct, int value) Unsafe version ofnr.static IntBuffernpad(long struct) static intnpad(long struct, int index) static voidnpad(long struct, int index, int value) static voidintnr()nr(int value) Sets the specified value to thenrfield.static intnsrc_fd(long struct) Unsafe version ofsrc_fd().static voidnsrc_fd(long struct, int value) Unsafe version ofsrc_fd.static intnsrc_off(long struct) Unsafe version ofsrc_off().static voidnsrc_off(long struct, int value) Unsafe version ofsrc_off.set(int src_fd, int flags, int src_off, int dst_off, int nr) Initializes this struct with the specified values.set(IOURingCloneBuffers src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).intsrc_fd()src_fd(int value) Sets the specified value to thesrc_fdfield.intsrc_off()src_off(int value) Sets the specified value to thesrc_offfield.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. -
SRC_FD
public static final int SRC_FDThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets. -
SRC_OFF
public static final int SRC_OFFThe struct member offsets. -
DST_OFF
public static final int DST_OFFThe struct member offsets. -
NR
public static final int NRThe struct member offsets. -
PAD
public static final int PADThe struct member offsets.
-
-
Constructor Details
-
IOURingCloneBuffers
Creates aIOURingCloneBuffersinstance 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<IOURingCloneBuffers>
-
src_fd
public int src_fd()- Returns:
- the value of the
src_fdfield.
-
flags
public int flags()- Returns:
- the value of the
flagsfield.
-
src_off
public int src_off()- Returns:
- the value of the
src_offfield.
-
dst_off
public int dst_off()- Returns:
- the value of the
dst_offfield.
-
nr
public int nr()- Returns:
- the value of the
nrfield.
-
src_fd
Sets the specified value to thesrc_fdfield. -
flags
Sets the specified value to theflagsfield. -
src_off
Sets the specified value to thesrc_offfield. -
dst_off
Sets the specified value to thedst_offfield. -
nr
Sets the specified value to thenrfield. -
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 newIOURingCloneBuffersinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newIOURingCloneBuffersinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newIOURingCloneBuffersinstance allocated withBufferUtils. -
create
Returns a newIOURingCloneBuffersinstance for the specified memory address. -
createSafe
-
malloc
Returns a newIOURingCloneBuffers.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newIOURingCloneBuffers.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newIOURingCloneBuffers.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aIOURingCloneBuffers.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newIOURingCloneBuffersinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newIOURingCloneBuffersinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newIOURingCloneBuffers.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newIOURingCloneBuffers.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nsrc_fd
public static int nsrc_fd(long struct) Unsafe version ofsrc_fd(). -
nflags
public static int nflags(long struct) Unsafe version offlags(). -
nsrc_off
public static int nsrc_off(long struct) Unsafe version ofsrc_off(). -
ndst_off
public static int ndst_off(long struct) Unsafe version ofdst_off(). -
nnr
public static int nnr(long struct) Unsafe version ofnr(). -
npad
-
npad
public static int npad(long struct, int index) -
nsrc_fd
public static void nsrc_fd(long struct, int value) Unsafe version ofsrc_fd. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags. -
nsrc_off
public static void nsrc_off(long struct, int value) Unsafe version ofsrc_off. -
ndst_off
public static void ndst_off(long struct, int value) Unsafe version ofdst_off. -
nnr
public static void nnr(long struct, int value) Unsafe version ofnr. -
npad
-
npad
public static void npad(long struct, int index, int value)
-