Package org.lwjgl.system.linux.liburing
Class IOURingGeteventsArg
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct io_uring_getevents_arg {
__u64 sigmask;
__u32 sigmask_sz;
__u32 min_wait_usec;
__u64 ts;
}-
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 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
ConstructorsConstructorDescriptionIOURingGeteventsArg(ByteBuffer container) Creates aIOURingGeteventsArginstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic IOURingGeteventsArgcalloc()Returns a newIOURingGeteventsArginstance allocated withmemCalloc.static IOURingGeteventsArg.Buffercalloc(int capacity) Returns a newIOURingGeteventsArg.Bufferinstance allocated withmemCalloc.static IOURingGeteventsArg.Buffercalloc(int capacity, MemoryStack stack) Returns a newIOURingGeteventsArg.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingGeteventsArgcalloc(MemoryStack stack) Returns a newIOURingGeteventsArginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static IOURingGeteventsArgcreate()Returns a newIOURingGeteventsArginstance allocated withBufferUtils.static IOURingGeteventsArg.Buffercreate(int capacity) Returns a newIOURingGeteventsArg.Bufferinstance allocated withBufferUtils.static IOURingGeteventsArgcreate(long address) Returns a newIOURingGeteventsArginstance for the specified memory address.static IOURingGeteventsArg.Buffercreate(long address, int capacity) Create aIOURingGeteventsArg.Bufferinstance at the specified memory.static @Nullable IOURingGeteventsArgcreateSafe(long address) static @Nullable IOURingGeteventsArg.BuffercreateSafe(long address, int capacity) static IOURingGeteventsArgmalloc()Returns a newIOURingGeteventsArginstance allocated withmemAlloc.static IOURingGeteventsArg.Buffermalloc(int capacity) Returns a newIOURingGeteventsArg.Bufferinstance allocated withmemAlloc.static IOURingGeteventsArg.Buffermalloc(int capacity, MemoryStack stack) Returns a newIOURingGeteventsArg.Bufferinstance allocated on the specifiedMemoryStack.static IOURingGeteventsArgmalloc(MemoryStack stack) Returns a newIOURingGeteventsArginstance allocated on the specifiedMemoryStack.intmin_wait_usec(int value) Sets the specified value to themin_wait_usecfield.static intnmin_wait_usec(long struct) Unsafe version ofmin_wait_usec().static voidnmin_wait_usec(long struct, int value) Unsafe version ofmin_wait_usec.static longnsigmask(long struct) Unsafe version ofsigmask().static voidnsigmask(long struct, long value) Unsafe version ofsigmask.static intnsigmask_sz(long struct) Unsafe version ofsigmask_sz().static voidnsigmask_sz(long struct, int value) Unsafe version ofsigmask_sz.static longnts(long struct) Unsafe version ofts().static voidnts(long struct, long value) Unsafe version ofts.set(long sigmask, int sigmask_sz, int min_wait_usec, long ts) Initializes this struct with the specified values.set(IOURingGeteventsArg src) Copies the specified struct data to this struct.longsigmask()sigmask(long value) Sets the specified value to thesigmaskfield.intsigmask_sz(int value) Sets the specified value to thesigmask_szfield.intsizeof()Returnssizeof(struct).longts()ts(long value) Sets the specified value to thetsfield.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. -
SIGMASK
public static final int SIGMASKThe struct member offsets. -
SIGMASK_SZ
public static final int SIGMASK_SZThe struct member offsets. -
MIN_WAIT_USEC
public static final int MIN_WAIT_USECThe struct member offsets. -
TS
public static final int TSThe struct member offsets.
-
-
Constructor Details
-
IOURingGeteventsArg
Creates aIOURingGeteventsArginstance 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<IOURingGeteventsArg>
-
sigmask
public long sigmask()- Returns:
- the value of the
sigmaskfield.
-
sigmask_sz
public int sigmask_sz()- Returns:
- the value of the
sigmask_szfield.
-
min_wait_usec
public int min_wait_usec()- Returns:
- the value of the
min_wait_usecfield.
-
ts
public long ts()- Returns:
- the value of the
tsfield.
-
sigmask
Sets the specified value to thesigmaskfield. -
sigmask_sz
Sets the specified value to thesigmask_szfield. -
min_wait_usec
Sets the specified value to themin_wait_usecfield. -
ts
Sets the specified value to thetsfield. -
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 newIOURingGeteventsArginstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newIOURingGeteventsArginstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newIOURingGeteventsArginstance allocated withBufferUtils. -
create
Returns a newIOURingGeteventsArginstance for the specified memory address. -
createSafe
-
malloc
Returns a newIOURingGeteventsArg.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newIOURingGeteventsArg.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newIOURingGeteventsArg.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aIOURingGeteventsArg.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newIOURingGeteventsArginstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newIOURingGeteventsArginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newIOURingGeteventsArg.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newIOURingGeteventsArg.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nsigmask
public static long nsigmask(long struct) Unsafe version ofsigmask(). -
nsigmask_sz
public static int nsigmask_sz(long struct) Unsafe version ofsigmask_sz(). -
nmin_wait_usec
public static int nmin_wait_usec(long struct) Unsafe version ofmin_wait_usec(). -
nts
public static long nts(long struct) Unsafe version ofts(). -
nsigmask
public static void nsigmask(long struct, long value) Unsafe version ofsigmask. -
nsigmask_sz
public static void nsigmask_sz(long struct, int value) Unsafe version ofsigmask_sz. -
nmin_wait_usec
public static void nmin_wait_usec(long struct, int value) Unsafe version ofmin_wait_usec. -
nts
public static void nts(long struct, long value) Unsafe version ofts.
-