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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct member offsets.static final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe 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 aIOURingSyncCancelReginstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionlongaddr()addr(long value) Sets the specified value to theaddrfield.static IOURingSyncCancelRegcalloc()Returns a newIOURingSyncCancelReginstance allocated withmemCalloc.static IOURingSyncCancelReg.Buffercalloc(int capacity) Returns a newIOURingSyncCancelReg.Bufferinstance allocated withmemCalloc.static IOURingSyncCancelReg.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newIOURingSyncCancelReg.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingSyncCancelRegcalloc(org.lwjgl.system.MemoryStack stack) Returns a newIOURingSyncCancelReginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingSyncCancelRegcreate()Returns a newIOURingSyncCancelReginstance allocated withBufferUtils.static IOURingSyncCancelReg.Buffercreate(int capacity) Returns a newIOURingSyncCancelReg.Bufferinstance allocated withBufferUtils.static IOURingSyncCancelRegcreate(long address) Returns a newIOURingSyncCancelReginstance for the specified memory address.static IOURingSyncCancelReg.Buffercreate(long address, int capacity) Create aIOURingSyncCancelReg.Bufferinstance at the specified memory.static IOURingSyncCancelRegcreateSafe(long address) static IOURingSyncCancelReg.BuffercreateSafe(long address, int capacity) intfd()fd(int value) Sets the specified value to thefdfield.intflags()flags(int value) Sets the specified value to theflagsfield.static IOURingSyncCancelRegmalloc()Returns a newIOURingSyncCancelReginstance allocated withmemAlloc.static IOURingSyncCancelReg.Buffermalloc(int capacity) Returns a newIOURingSyncCancelReg.Bufferinstance allocated withmemAlloc.static IOURingSyncCancelReg.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newIOURingSyncCancelReg.Bufferinstance allocated on the specifiedMemoryStack.static IOURingSyncCancelRegmalloc(org.lwjgl.system.MemoryStack stack) Returns a newIOURingSyncCancelReginstance allocated on the specifiedMemoryStack.static longnaddr(long struct) Unsafe version ofaddr().static voidnaddr(long struct, long value) Unsafe version ofaddr.static intnfd(long struct) Unsafe version offd().static voidnfd(long struct, int value) Unsafe version offd.static intnflags(long struct) Unsafe version offlags().static voidnflags(long struct, int value) Unsafe version offlags.static LongBuffernpad(long struct) static longnpad(long struct, int index) static voidnpad(long struct, int index, long value) static voidnpad(long struct, LongBuffer value) static KernelTimespecntimeout(long struct) Unsafe version oftimeout().static voidntimeout(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.intsizeof()timeout()timeout(Consumer<KernelTimespec> consumer) Passes thetimeoutfield to the specifiedConsumer.timeout(KernelTimespec value) Copies the specifiedKernelTimespecto thetimeoutfield.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 aIOURingSyncCancelReginstance at the current position of the specifiedByteBuffercontainer. 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:
sizeofin classorg.lwjgl.system.Struct<IOURingSyncCancelReg>
-
addr
public long addr()- Returns:
- the value of the
addrfield.
-
fd
public int fd()- Returns:
- the value of the
fdfield.
-
flags
public int flags()- Returns:
- the value of the
flagsfield.
-
timeout
- Returns:
- a
KernelTimespecview of thetimeoutfield.
-
addr
Sets the specified value to theaddrfield. -
fd
Sets the specified value to thefdfield. -
flags
Sets the specified value to theflagsfield. -
timeout
Copies the specifiedKernelTimespecto thetimeoutfield. -
timeout
Passes thetimeoutfield 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 newIOURingSyncCancelReginstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newIOURingSyncCancelReginstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newIOURingSyncCancelReginstance allocated withBufferUtils. -
create
Returns a newIOURingSyncCancelReginstance for the specified memory address. -
createSafe
-
malloc
Returns a newIOURingSyncCancelReg.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newIOURingSyncCancelReg.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newIOURingSyncCancelReg.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aIOURingSyncCancelReg.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newIOURingSyncCancelReginstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newIOURingSyncCancelReginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newIOURingSyncCancelReg.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newIOURingSyncCancelReg.Bufferinstance allocated on the specifiedMemoryStackand 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)
-