Package org.lwjgl.system.linux.liburing
Class IOURingSyncCancelReg
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct io_uring_sync_cancel_reg {
__u64 addr;
__s32 fd;
__u32 flags;
struct __kernel_timespec timeout;
__u8 opcode;
__u8 pad[7];
__u64 pad2[3];
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
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 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, MemoryStack stack) Returns a newIOURingSyncCancelReg.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingSyncCancelRegcalloc(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 @Nullable IOURingSyncCancelRegcreateSafe(long address) static @Nullable 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, MemoryStack stack) Returns a newIOURingSyncCancelReg.Bufferinstance allocated on the specifiedMemoryStack.static IOURingSyncCancelRegmalloc(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 bytenopcode(long struct) Unsafe version ofopcode().static voidnopcode(long struct, byte value) Unsafe version ofopcode.static ByteBuffernpad(long struct) static bytenpad(long struct, int index) static voidnpad(long struct, int index, byte value) static voidnpad(long struct, ByteBuffer value) static LongBuffernpad2(long struct) static longnpad2(long struct, int index) static voidnpad2(long struct, int index, long value) static voidnpad2(long struct, LongBuffer value) static KernelTimespecntimeout(long struct) Unsafe version oftimeout().static voidntimeout(long struct, KernelTimespec value) Unsafe version oftimeout.byteopcode()opcode(byte value) Sets the specified value to theopcodefield.set(long addr, int fd, int flags, KernelTimespec timeout, byte opcode) Initializes this struct with the specified values.set(IOURingSyncCancelReg src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).timeout()timeout(Consumer<KernelTimespec> consumer) Passes thetimeoutfield to the specifiedConsumer.timeout(KernelTimespec value) Copies the specifiedKernelTimespecto thetimeoutfield.Methods 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. -
OPCODE
public static final int OPCODEThe struct member offsets. -
PAD
public static final int PADThe struct member offsets. -
PAD2
public static final int PAD2The 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()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<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.
-
opcode
public byte opcode()- Returns:
- the value of the
opcodefield.
-
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. -
opcode
Sets the specified value to theopcodefield. -
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(). -
nopcode
public static byte nopcode(long struct) Unsafe version ofopcode(). -
npad
-
npad
public static byte npad(long struct, int index) -
npad2
-
npad2
public static long npad2(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. -
nopcode
public static void nopcode(long struct, byte value) Unsafe version ofopcode. -
npad
-
npad
public static void npad(long struct, int index, byte value) -
npad2
-
npad2
public static void npad2(long struct, int index, long value)
-