Package org.lwjgl.system.linux.liburing
Class IOURingFileIndexRange
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<IOURingFileIndexRange>
org.lwjgl.system.linux.liburing.IOURingFileIndexRange
- All Implemented Interfaces:
AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class IOURingFileIndexRange
extends org.lwjgl.system.Struct<IOURingFileIndexRange>
implements org.lwjgl.system.NativeResource
Argument for
REGISTER_FILE_ALLOC_RANGE
.
The range is specified as [off, off + len)
.
Layout
struct io_uring_file_index_range {
__u32 off;
__u32 len;
__u64 resv;
}
-
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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionIOURingFileIndexRange
(ByteBuffer container) Creates aIOURingFileIndexRange
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic IOURingFileIndexRange
calloc()
Returns a newIOURingFileIndexRange
instance allocated withmemCalloc
.static IOURingFileIndexRange.Buffer
calloc
(int capacity) Returns a newIOURingFileIndexRange.Buffer
instance allocated withmemCalloc
.static IOURingFileIndexRange.Buffer
calloc
(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newIOURingFileIndexRange.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOURingFileIndexRange
calloc
(org.lwjgl.system.MemoryStack stack) Returns a newIOURingFileIndexRange
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOURingFileIndexRange
create()
Returns a newIOURingFileIndexRange
instance allocated withBufferUtils
.static IOURingFileIndexRange.Buffer
create
(int capacity) Returns a newIOURingFileIndexRange.Buffer
instance allocated withBufferUtils
.static IOURingFileIndexRange
create
(long address) Returns a newIOURingFileIndexRange
instance for the specified memory address.static IOURingFileIndexRange.Buffer
create
(long address, int capacity) Create aIOURingFileIndexRange.Buffer
instance at the specified memory.static IOURingFileIndexRange
createSafe
(long address) static IOURingFileIndexRange.Buffer
createSafe
(long address, int capacity) int
len()
len
(int value) Sets the specified value to thelen
field.static IOURingFileIndexRange
malloc()
Returns a newIOURingFileIndexRange
instance allocated withmemAlloc
.static IOURingFileIndexRange.Buffer
malloc
(int capacity) Returns a newIOURingFileIndexRange.Buffer
instance allocated withmemAlloc
.static IOURingFileIndexRange.Buffer
malloc
(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newIOURingFileIndexRange.Buffer
instance allocated on the specifiedMemoryStack
.static IOURingFileIndexRange
malloc
(org.lwjgl.system.MemoryStack stack) Returns a newIOURingFileIndexRange
instance allocated on the specifiedMemoryStack
.static int
nlen
(long struct) Unsafe version oflen()
.static void
nlen
(long struct, int value) Unsafe version oflen
.static int
noff
(long struct) Unsafe version ofoff()
.static void
noff
(long struct, int value) Unsafe version ofoff
.static long
nresv
(long struct) Unsafe version ofresv()
.static void
nresv
(long struct, long value) Unsafe version ofresv
.int
off()
off
(int value) Sets the specified value to theoff
field.long
resv()
resv
(long value) Sets the specified value to theresv
field.set
(int off, int len, long resv) Initializes this struct with the specified values.set
(IOURingFileIndexRange 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. -
OFF
public static final int OFFThe struct member offsets. -
LEN
public static final int LENThe struct member offsets. -
RESV
public static final int RESVThe struct member offsets.
-
-
Constructor Details
-
IOURingFileIndexRange
Creates aIOURingFileIndexRange
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<IOURingFileIndexRange>
-
off
public int off()- Returns:
- the value of the
off
field.
-
len
public int len()- Returns:
- the value of the
len
field.
-
resv
public long resv()- Returns:
- the value of the
resv
field.
-
off
Sets the specified value to theoff
field. -
len
Sets the specified value to thelen
field. -
resv
Sets the specified value to theresv
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 newIOURingFileIndexRange
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newIOURingFileIndexRange
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newIOURingFileIndexRange
instance allocated withBufferUtils
. -
create
Returns a newIOURingFileIndexRange
instance for the specified memory address. -
createSafe
-
malloc
Returns a newIOURingFileIndexRange.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newIOURingFileIndexRange.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newIOURingFileIndexRange.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aIOURingFileIndexRange.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newIOURingFileIndexRange
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newIOURingFileIndexRange
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newIOURingFileIndexRange.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newIOURingFileIndexRange.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
noff
public static int noff(long struct) Unsafe version ofoff()
. -
nlen
public static int nlen(long struct) Unsafe version oflen()
. -
nresv
public static long nresv(long struct) Unsafe version ofresv()
. -
noff
public static void noff(long struct, int value) Unsafe version ofoff
. -
nlen
public static void nlen(long struct, int value) Unsafe version oflen
. -
nresv
public static void nresv(long struct, long value) Unsafe version ofresv
.
-