Package org.lwjgl.system.linux.liburing
Class IOUringNotificationSlot
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct
org.lwjgl.system.linux.liburing.IOUringNotificationSlot
- All Implemented Interfaces:
AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class IOUringNotificationSlot
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
Layout
struct io_uring_notification_slot {
__u64 tag;
__u64 resv[3];
}
-
Nested Class Summary
Nested ClassesNested 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
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.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
ConstructorsConstructorDescriptionIOUringNotificationSlot
(ByteBuffer container) Creates aIOUringNotificationSlot
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic IOUringNotificationSlot
calloc()
Returns a newIOUringNotificationSlot
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newIOUringNotificationSlot.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newIOUringNotificationSlot.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOUringNotificationSlot
calloc
(org.lwjgl.system.MemoryStack stack) Returns a newIOUringNotificationSlot
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOUringNotificationSlot
create()
Returns a newIOUringNotificationSlot
instance allocated withBufferUtils
.create
(int capacity) Returns a newIOUringNotificationSlot.Buffer
instance allocated withBufferUtils
.static IOUringNotificationSlot
create
(long address) Returns a newIOUringNotificationSlot
instance for the specified memory address.create
(long address, int capacity) Create aIOUringNotificationSlot.Buffer
instance at the specified memory.static IOUringNotificationSlot
createSafe
(long address) createSafe
(long address, int capacity) static IOUringNotificationSlot
malloc()
Returns a newIOUringNotificationSlot
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newIOUringNotificationSlot.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newIOUringNotificationSlot.Buffer
instance allocated on the specifiedMemoryStack
.static IOUringNotificationSlot
malloc
(org.lwjgl.system.MemoryStack stack) Returns a newIOUringNotificationSlot
instance allocated on the specifiedMemoryStack
.static LongBuffer
nresv
(long struct) Unsafe version ofresv()
.static long
nresv
(long struct, int index) Unsafe version ofresv
.static void
nresv
(long struct, int index, long value) Unsafe version ofresv
.static void
nresv
(long struct, LongBuffer value) Unsafe version ofresv
.static long
ntag
(long struct) Unsafe version oftag()
.static void
ntag
(long struct, long value) Unsafe version oftag
.resv()
long
resv
(int index) resv
(int index, long value) Sets the specified value at the specified index of theresv
field.resv
(LongBuffer value) Copies the specifiedLongBuffer
to theresv
field.set
(long tag, LongBuffer resv) Initializes this struct with the specified values.Copies the specified struct data to this struct.int
sizeof()
long
tag()
tag
(long value) Sets the specified value to thetag
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. -
TAG
public static final int TAGThe struct member offsets. -
RESV
public static final int RESVThe struct member offsets.
-
-
Constructor Details
-
IOUringNotificationSlot
Creates aIOUringNotificationSlot
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
-
tag
public long tag()- Returns:
- the value of the
tag
field.
-
resv
- Returns:
- a
LongBuffer
view of theresv
field.
-
resv
public long resv(int index) - Returns:
- the value at the specified index of the
resv
field.
-
tag
Sets the specified value to thetag
field. -
resv
Copies the specifiedLongBuffer
to theresv
field. -
resv
Sets the specified value at the specified index of 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 newIOUringNotificationSlot
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newIOUringNotificationSlot
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newIOUringNotificationSlot
instance allocated withBufferUtils
. -
create
Returns a newIOUringNotificationSlot
instance for the specified memory address. -
createSafe
-
malloc
Returns a newIOUringNotificationSlot.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newIOUringNotificationSlot.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newIOUringNotificationSlot.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aIOUringNotificationSlot.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newIOUringNotificationSlot
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newIOUringNotificationSlot
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
public static IOUringNotificationSlot.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newIOUringNotificationSlot.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
public static IOUringNotificationSlot.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newIOUringNotificationSlot.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
ntag
public static long ntag(long struct) Unsafe version oftag()
. -
nresv
Unsafe version ofresv()
. -
nresv
public static long nresv(long struct, int index) Unsafe version ofresv
. -
ntag
public static void ntag(long struct, long value) Unsafe version oftag
. -
nresv
Unsafe version ofresv
. -
nresv
public static void nresv(long struct, int index, long value) Unsafe version ofresv
.
-