Package org.lwjgl.system.linux.liburing
Class IOURingSyncCancelReg
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<IOURingSyncCancelReg>
org.lwjgl.system.linux.liburing.IOURingSyncCancelReg
- All Implemented Interfaces:
AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class IOURingSyncCancelReg
extends org.lwjgl.system.Struct<IOURingSyncCancelReg>
implements org.lwjgl.system.NativeResource
Argument for
REGISTER_SYNC_CANCEL
.
Layout
struct io_uring_sync_cancel_reg {
__u64 addr;
__s32 fd;
__u32 flags;
struct __kernel_timespec
timeout;
__u64 pad[4];
}
-
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 member offsets.static 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.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
ConstructorsConstructorDescriptionIOURingSyncCancelReg
(ByteBuffer container) Creates aIOURingSyncCancelReg
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionlong
addr()
addr
(long value) Sets the specified value to theaddr
field.static IOURingSyncCancelReg
calloc()
Returns a newIOURingSyncCancelReg
instance allocated withmemCalloc
.static IOURingSyncCancelReg.Buffer
calloc
(int capacity) Returns a newIOURingSyncCancelReg.Buffer
instance allocated withmemCalloc
.static IOURingSyncCancelReg.Buffer
calloc
(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newIOURingSyncCancelReg.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOURingSyncCancelReg
calloc
(org.lwjgl.system.MemoryStack stack) Returns a newIOURingSyncCancelReg
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOURingSyncCancelReg
create()
Returns a newIOURingSyncCancelReg
instance allocated withBufferUtils
.static IOURingSyncCancelReg.Buffer
create
(int capacity) Returns a newIOURingSyncCancelReg.Buffer
instance allocated withBufferUtils
.static IOURingSyncCancelReg
create
(long address) Returns a newIOURingSyncCancelReg
instance for the specified memory address.static IOURingSyncCancelReg.Buffer
create
(long address, int capacity) Create aIOURingSyncCancelReg.Buffer
instance at the specified memory.static IOURingSyncCancelReg
createSafe
(long address) static IOURingSyncCancelReg.Buffer
createSafe
(long address, int capacity) int
fd()
fd
(int value) Sets the specified value to thefd
field.int
flags()
flags
(int value) Sets the specified value to theflags
field.static IOURingSyncCancelReg
malloc()
Returns a newIOURingSyncCancelReg
instance allocated withmemAlloc
.static IOURingSyncCancelReg.Buffer
malloc
(int capacity) Returns a newIOURingSyncCancelReg.Buffer
instance allocated withmemAlloc
.static IOURingSyncCancelReg.Buffer
malloc
(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newIOURingSyncCancelReg.Buffer
instance allocated on the specifiedMemoryStack
.static IOURingSyncCancelReg
malloc
(org.lwjgl.system.MemoryStack stack) Returns a newIOURingSyncCancelReg
instance allocated on the specifiedMemoryStack
.static long
naddr
(long struct) Unsafe version ofaddr()
.static void
naddr
(long struct, long value) Unsafe version ofaddr
.static int
nfd
(long struct) Unsafe version offd()
.static void
nfd
(long struct, int value) Unsafe version offd
.static int
nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, int value) Unsafe version offlags
.static LongBuffer
npad
(long struct) static long
npad
(long struct, int index) static void
npad
(long struct, int index, long value) static void
npad
(long struct, LongBuffer value) static KernelTimespec
ntimeout
(long struct) Unsafe version oftimeout()
.static void
ntimeout
(long struct, KernelTimespec value) Unsafe version oftimeout
.set
(long addr, int fd, int flags, KernelTimespec timeout) Initializes this struct with the specified values.set
(IOURingSyncCancelReg src) Copies the specified struct data to this struct.int
sizeof()
timeout()
timeout
(Consumer<KernelTimespec> consumer) Passes thetimeout
field to the specifiedConsumer
.timeout
(KernelTimespec value) Copies the specifiedKernelTimespec
to thetimeout
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. -
ADDR
public static final int ADDRThe struct member offsets. -
FD
public static final int FDThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets. -
TIMEOUT
public static final int TIMEOUTThe struct member offsets. -
PAD
public static final int PADThe struct member offsets.
-
-
Constructor Details
-
IOURingSyncCancelReg
Creates aIOURingSyncCancelReg
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<IOURingSyncCancelReg>
-
addr
public long addr()- Returns:
- the value of the
addr
field.
-
fd
public int fd()- Returns:
- the value of the
fd
field.
-
flags
public int flags()- Returns:
- the value of the
flags
field.
-
timeout
- Returns:
- a
KernelTimespec
view of thetimeout
field.
-
addr
Sets the specified value to theaddr
field. -
fd
Sets the specified value to thefd
field. -
flags
Sets the specified value to theflags
field. -
timeout
Copies the specifiedKernelTimespec
to thetimeout
field. -
timeout
Passes thetimeout
field to the specifiedConsumer
. -
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 newIOURingSyncCancelReg
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newIOURingSyncCancelReg
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newIOURingSyncCancelReg
instance allocated withBufferUtils
. -
create
Returns a newIOURingSyncCancelReg
instance for the specified memory address. -
createSafe
-
malloc
Returns a newIOURingSyncCancelReg.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newIOURingSyncCancelReg.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newIOURingSyncCancelReg.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aIOURingSyncCancelReg.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newIOURingSyncCancelReg
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newIOURingSyncCancelReg
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newIOURingSyncCancelReg.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newIOURingSyncCancelReg.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
naddr
public static long naddr(long struct) Unsafe version ofaddr()
. -
nfd
public static int nfd(long struct) Unsafe version offd()
. -
nflags
public static int nflags(long struct) Unsafe version offlags()
. -
ntimeout
Unsafe version oftimeout()
. -
npad
-
npad
public static long npad(long struct, int index) -
naddr
public static void naddr(long struct, long value) Unsafe version ofaddr
. -
nfd
public static void nfd(long struct, int value) Unsafe version offd
. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags
. -
ntimeout
Unsafe version oftimeout
. -
npad
-
npad
public static void npad(long struct, int index, long value)
-