Package org.lwjgl.system.linux.liburing
Class IOSQRingOffsets
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct
org.lwjgl.system.linux.liburing.IOSQRingOffsets
- All Implemented Interfaces:
AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class IOSQRingOffsets
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
Filled with the offset for
mmap(2)
.
Layout
struct io_sqring_offsets {
__u32 head;
__u32 tail;
__u32 ring_mask;
__u32 ring_entries;
__u32 flags;
__u32 dropped;
__u32 array;
__u32 resv1;
__u64 resv2;
}
-
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 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 member offsets.static final int
The struct size in bytes.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
ConstructorDescriptionIOSQRingOffsets
(ByteBuffer container) Creates aIOSQRingOffsets
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionint
array()
array
(int value) Sets the specified value to thearray
field.static IOSQRingOffsets
calloc()
Returns a newIOSQRingOffsets
instance allocated withmemCalloc
.static IOSQRingOffsets.Buffer
calloc
(int capacity) Returns a newIOSQRingOffsets.Buffer
instance allocated withmemCalloc
.static IOSQRingOffsets.Buffer
calloc
(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newIOSQRingOffsets.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOSQRingOffsets
calloc
(org.lwjgl.system.MemoryStack stack) Returns a newIOSQRingOffsets
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOSQRingOffsets
create()
Returns a newIOSQRingOffsets
instance allocated withBufferUtils
.static IOSQRingOffsets.Buffer
create
(int capacity) Returns a newIOSQRingOffsets.Buffer
instance allocated withBufferUtils
.static IOSQRingOffsets
create
(long address) Returns a newIOSQRingOffsets
instance for the specified memory address.static IOSQRingOffsets.Buffer
create
(long address, int capacity) Create aIOSQRingOffsets.Buffer
instance at the specified memory.static IOSQRingOffsets
createSafe
(long address) static IOSQRingOffsets.Buffer
createSafe
(long address, int capacity) int
dropped()
dropped
(int value) Sets the specified value to thedropped
field.int
flags()
flags
(int value) Sets the specified value to theflags
field.int
head()
head
(int value) Sets the specified value to thehead
field.static IOSQRingOffsets
malloc()
Returns a newIOSQRingOffsets
instance allocated withmemAlloc
.static IOSQRingOffsets.Buffer
malloc
(int capacity) Returns a newIOSQRingOffsets.Buffer
instance allocated withmemAlloc
.static IOSQRingOffsets.Buffer
malloc
(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newIOSQRingOffsets.Buffer
instance allocated on the specifiedMemoryStack
.static IOSQRingOffsets
malloc
(org.lwjgl.system.MemoryStack stack) Returns a newIOSQRingOffsets
instance allocated on the specifiedMemoryStack
.static int
narray
(long struct) Unsafe version ofarray()
.static void
narray
(long struct, int value) Unsafe version ofarray
.static int
ndropped
(long struct) Unsafe version ofdropped()
.static void
ndropped
(long struct, int value) Unsafe version ofdropped
.static int
nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, int value) Unsafe version offlags
.static int
nhead
(long struct) Unsafe version ofhead()
.static void
nhead
(long struct, int value) Unsafe version ofhead
.static int
nresv1
(long struct) static void
nresv1
(long struct, int value) static long
nresv2
(long struct) static void
nresv2
(long struct, long value) static int
nring_entries
(long struct) Unsafe version ofring_entries()
.static void
nring_entries
(long struct, int value) Unsafe version ofring_entries
.static int
nring_mask
(long struct) Unsafe version ofring_mask()
.static void
nring_mask
(long struct, int value) Unsafe version ofring_mask
.static int
ntail
(long struct) Unsafe version oftail()
.static void
ntail
(long struct, int value) Unsafe version oftail
.int
ring_entries
(int value) Sets the specified value to thering_entries
field.int
ring_mask
(int value) Sets the specified value to thering_mask
field.set
(int head, int tail, int ring_mask, int ring_entries, int flags, int dropped, int array) Initializes this struct with the specified values.set
(IOSQRingOffsets src) Copies the specified struct data to this struct.int
sizeof()
int
tail()
tail
(int value) Sets the specified value to thetail
field.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. -
HEAD
public static final int HEADThe struct member offsets. -
TAIL
public static final int TAILThe struct member offsets. -
RING_MASK
public static final int RING_MASKThe struct member offsets. -
RING_ENTRIES
public static final int RING_ENTRIESThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets. -
DROPPED
public static final int DROPPEDThe struct member offsets. -
ARRAY
public static final int ARRAYThe struct member offsets. -
RESV1
public static final int RESV1The struct member offsets. -
RESV2
public static final int RESV2The struct member offsets.
-
-
Constructor Details
-
IOSQRingOffsets
Creates aIOSQRingOffsets
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
-
head
public int head()- Returns:
- the value of the
head
field.
-
tail
public int tail()- Returns:
- the value of the
tail
field.
-
ring_mask
public int ring_mask()- Returns:
- the value of the
ring_mask
field.
-
ring_entries
public int ring_entries()- Returns:
- the value of the
ring_entries
field.
-
flags
public int flags()- Returns:
- the value of the
flags
field.
-
dropped
public int dropped()- Returns:
- the value of the
dropped
field.
-
array
public int array()- Returns:
- the value of the
array
field.
-
head
Sets the specified value to thehead
field. -
tail
Sets the specified value to thetail
field. -
ring_mask
Sets the specified value to thering_mask
field. -
ring_entries
Sets the specified value to thering_entries
field. -
flags
Sets the specified value to theflags
field. -
dropped
Sets the specified value to thedropped
field. -
array
Sets the specified value to thearray
field. -
set
public IOSQRingOffsets set(int head, int tail, int ring_mask, int ring_entries, int flags, int dropped, int array) 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 newIOSQRingOffsets
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newIOSQRingOffsets
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newIOSQRingOffsets
instance allocated withBufferUtils
. -
create
Returns a newIOSQRingOffsets
instance for the specified memory address. -
createSafe
-
malloc
Returns a newIOSQRingOffsets.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newIOSQRingOffsets.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newIOSQRingOffsets.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aIOSQRingOffsets.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newIOSQRingOffsets
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newIOSQRingOffsets
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newIOSQRingOffsets.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newIOSQRingOffsets.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nhead
public static int nhead(long struct) Unsafe version ofhead()
. -
ntail
public static int ntail(long struct) Unsafe version oftail()
. -
nring_mask
public static int nring_mask(long struct) Unsafe version ofring_mask()
. -
nring_entries
public static int nring_entries(long struct) Unsafe version ofring_entries()
. -
nflags
public static int nflags(long struct) Unsafe version offlags()
. -
ndropped
public static int ndropped(long struct) Unsafe version ofdropped()
. -
narray
public static int narray(long struct) Unsafe version ofarray()
. -
nresv1
public static int nresv1(long struct) -
nresv2
public static long nresv2(long struct) -
nhead
public static void nhead(long struct, int value) Unsafe version ofhead
. -
ntail
public static void ntail(long struct, int value) Unsafe version oftail
. -
nring_mask
public static void nring_mask(long struct, int value) Unsafe version ofring_mask
. -
nring_entries
public static void nring_entries(long struct, int value) Unsafe version ofring_entries
. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags
. -
ndropped
public static void ndropped(long struct, int value) Unsafe version ofdropped
. -
narray
public static void narray(long struct, int value) Unsafe version ofarray
. -
nresv1
public static void nresv1(long struct, int value) -
nresv2
public static void nresv2(long struct, long value)
-