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.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier 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 size in bytes.static final int
The struct member offsets.static final int
The 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 aIOURingCloneBuffers
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic IOURingCloneBuffers
calloc()
Returns a newIOURingCloneBuffers
instance allocated withmemCalloc
.static IOURingCloneBuffers.Buffer
calloc
(int capacity) Returns a newIOURingCloneBuffers.Buffer
instance allocated withmemCalloc
.static IOURingCloneBuffers.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newIOURingCloneBuffers.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOURingCloneBuffers
calloc
(MemoryStack stack) Returns a newIOURingCloneBuffers
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOURingCloneBuffers
create()
Returns a newIOURingCloneBuffers
instance allocated withBufferUtils
.static IOURingCloneBuffers.Buffer
create
(int capacity) Returns a newIOURingCloneBuffers.Buffer
instance allocated withBufferUtils
.static IOURingCloneBuffers
create
(long address) Returns a newIOURingCloneBuffers
instance for the specified memory address.static IOURingCloneBuffers.Buffer
create
(long address, int capacity) Create aIOURingCloneBuffers.Buffer
instance at the specified memory.static @Nullable IOURingCloneBuffers
createSafe
(long address) static @Nullable IOURingCloneBuffers.Buffer
createSafe
(long address, int capacity) int
dst_off()
dst_off
(int value) Sets the specified value to thedst_off
field.int
flags()
flags
(int value) Sets the specified value to theflags
field.static IOURingCloneBuffers
malloc()
Returns a newIOURingCloneBuffers
instance allocated withmemAlloc
.static IOURingCloneBuffers.Buffer
malloc
(int capacity) Returns a newIOURingCloneBuffers.Buffer
instance allocated withmemAlloc
.static IOURingCloneBuffers.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newIOURingCloneBuffers.Buffer
instance allocated on the specifiedMemoryStack
.static IOURingCloneBuffers
malloc
(MemoryStack stack) Returns a newIOURingCloneBuffers
instance allocated on the specifiedMemoryStack
.static int
ndst_off
(long struct) Unsafe version ofdst_off()
.static void
ndst_off
(long struct, int value) Unsafe version ofdst_off
.static int
nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, int value) Unsafe version offlags
.static int
nnr
(long struct) Unsafe version ofnr()
.static void
nnr
(long struct, int value) Unsafe version ofnr
.static IntBuffer
npad
(long struct) static int
npad
(long struct, int index) static void
npad
(long struct, int index, int value) static void
int
nr()
nr
(int value) Sets the specified value to thenr
field.static int
nsrc_fd
(long struct) Unsafe version ofsrc_fd()
.static void
nsrc_fd
(long struct, int value) Unsafe version ofsrc_fd
.static int
nsrc_off
(long struct) Unsafe version ofsrc_off()
.static void
nsrc_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.int
sizeof()
Returnssizeof(struct)
.int
src_fd()
src_fd
(int value) Sets the specified value to thesrc_fd
field.int
src_off()
src_off
(int value) Sets the specified value to thesrc_off
field.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. -
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 aIOURingCloneBuffers
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()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<IOURingCloneBuffers>
-
src_fd
public int src_fd()- Returns:
- the value of the
src_fd
field.
-
flags
public int flags()- Returns:
- the value of the
flags
field.
-
src_off
public int src_off()- Returns:
- the value of the
src_off
field.
-
dst_off
public int dst_off()- Returns:
- the value of the
dst_off
field.
-
nr
public int nr()- Returns:
- the value of the
nr
field.
-
src_fd
Sets the specified value to thesrc_fd
field. -
flags
Sets the specified value to theflags
field. -
src_off
Sets the specified value to thesrc_off
field. -
dst_off
Sets the specified value to thedst_off
field. -
nr
Sets the specified value to thenr
field. -
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 newIOURingCloneBuffers
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newIOURingCloneBuffers
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newIOURingCloneBuffers
instance allocated withBufferUtils
. -
create
Returns a newIOURingCloneBuffers
instance for the specified memory address. -
createSafe
-
malloc
Returns a newIOURingCloneBuffers.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newIOURingCloneBuffers.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newIOURingCloneBuffers.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aIOURingCloneBuffers.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newIOURingCloneBuffers
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newIOURingCloneBuffers
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newIOURingCloneBuffers.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newIOURingCloneBuffers.Buffer
instance allocated on the specifiedMemoryStack
and 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)
-