Package org.lwjgl.system.linux.liburing
Class IOURingGeteventsArg
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.system.linux.liburing.IOURingGeteventsArg
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class IOURingGeteventsArg extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Layout
struct io_uring_getevents_arg { __u64 sigmask; __u32 sigmask_sz; __u32 pad; __u64 ts; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IOURingGeteventsArg.Buffer
An array ofIOURingGeteventsArg
structs.
-
Constructor Summary
Constructors Constructor Description IOURingGeteventsArg(java.nio.ByteBuffer container)
Creates aIOURingGeteventsArg
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IOURingGeteventsArg
calloc()
Returns a newIOURingGeteventsArg
instance allocated withmemCalloc
.static IOURingGeteventsArg.Buffer
calloc(int capacity)
Returns a newIOURingGeteventsArg.Buffer
instance allocated withmemCalloc
.static IOURingGeteventsArg.Buffer
calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newIOURingGeteventsArg.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOURingGeteventsArg
calloc(org.lwjgl.system.MemoryStack stack)
Returns a newIOURingGeteventsArg
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOURingGeteventsArg
create()
Returns a newIOURingGeteventsArg
instance allocated withBufferUtils
.static IOURingGeteventsArg.Buffer
create(int capacity)
Returns a newIOURingGeteventsArg.Buffer
instance allocated withBufferUtils
.static IOURingGeteventsArg
create(long address)
Returns a newIOURingGeteventsArg
instance for the specified memory address.static IOURingGeteventsArg.Buffer
create(long address, int capacity)
Create aIOURingGeteventsArg.Buffer
instance at the specified memory.static IOURingGeteventsArg
createSafe(long address)
static IOURingGeteventsArg.Buffer
createSafe(long address, int capacity)
static IOURingGeteventsArg
malloc()
Returns a newIOURingGeteventsArg
instance allocated withmemAlloc
.static IOURingGeteventsArg.Buffer
malloc(int capacity)
Returns a newIOURingGeteventsArg.Buffer
instance allocated withmemAlloc
.static IOURingGeteventsArg.Buffer
malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newIOURingGeteventsArg.Buffer
instance allocated on the specifiedMemoryStack
.static IOURingGeteventsArg
malloc(org.lwjgl.system.MemoryStack stack)
Returns a newIOURingGeteventsArg
instance allocated on the specifiedMemoryStack
.static int
npad(long struct)
Unsafe version ofpad()
.static void
npad(long struct, int value)
Unsafe version ofpad
.static long
nsigmask(long struct)
Unsafe version ofsigmask()
.static void
nsigmask(long struct, long value)
Unsafe version ofsigmask
.static int
nsigmask_sz(long struct)
Unsafe version ofsigmask_sz()
.static void
nsigmask_sz(long struct, int value)
Unsafe version ofsigmask_sz
.static long
nts(long struct)
Unsafe version ofts()
.static void
nts(long struct, long value)
Unsafe version ofts
.int
pad()
IOURingGeteventsArg
pad(int value)
Sets the specified value to thepad
field.IOURingGeteventsArg
set(long sigmask, int sigmask_sz, int pad, long ts)
Initializes this struct with the specified values.IOURingGeteventsArg
set(IOURingGeteventsArg src)
Copies the specified struct data to this struct.long
sigmask()
IOURingGeteventsArg
sigmask(long value)
Sets the specified value to thesigmask
field.int
sigmask_sz()
IOURingGeteventsArg
sigmask_sz(int value)
Sets the specified value to thesigmask_sz
field.int
sizeof()
long
ts()
IOURingGeteventsArg
ts(long value)
Sets the specified value to thets
field.
-
-
-
Constructor Detail
-
IOURingGeteventsArg
public IOURingGeteventsArg(java.nio.ByteBuffer container)
Creates aIOURingGeteventsArg
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
sigmask
public long sigmask()
- Returns:
- the value of the
sigmask
field.
-
sigmask_sz
public int sigmask_sz()
- Returns:
- the value of the
sigmask_sz
field.
-
pad
public int pad()
- Returns:
- the value of the
pad
field.
-
ts
public long ts()
- Returns:
- the value of the
ts
field.
-
sigmask
public IOURingGeteventsArg sigmask(long value)
Sets the specified value to thesigmask
field.
-
sigmask_sz
public IOURingGeteventsArg sigmask_sz(int value)
Sets the specified value to thesigmask_sz
field.
-
pad
public IOURingGeteventsArg pad(int value)
Sets the specified value to thepad
field.
-
ts
public IOURingGeteventsArg ts(long value)
Sets the specified value to thets
field.
-
set
public IOURingGeteventsArg set(long sigmask, int sigmask_sz, int pad, long ts)
Initializes this struct with the specified values.
-
set
public IOURingGeteventsArg set(IOURingGeteventsArg src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static IOURingGeteventsArg malloc()
Returns a newIOURingGeteventsArg
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static IOURingGeteventsArg calloc()
Returns a newIOURingGeteventsArg
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static IOURingGeteventsArg create()
Returns a newIOURingGeteventsArg
instance allocated withBufferUtils
.
-
create
public static IOURingGeteventsArg create(long address)
Returns a newIOURingGeteventsArg
instance for the specified memory address.
-
createSafe
@Nullable public static IOURingGeteventsArg createSafe(long address)
-
malloc
public static IOURingGeteventsArg.Buffer malloc(int capacity)
Returns a newIOURingGeteventsArg.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static IOURingGeteventsArg.Buffer calloc(int capacity)
Returns a newIOURingGeteventsArg.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static IOURingGeteventsArg.Buffer create(int capacity)
Returns a newIOURingGeteventsArg.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static IOURingGeteventsArg.Buffer create(long address, int capacity)
Create aIOURingGeteventsArg.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static IOURingGeteventsArg.Buffer createSafe(long address, int capacity)
-
malloc
public static IOURingGeteventsArg malloc(org.lwjgl.system.MemoryStack stack)
Returns a newIOURingGeteventsArg
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
public static IOURingGeteventsArg calloc(org.lwjgl.system.MemoryStack stack)
Returns a newIOURingGeteventsArg
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
public static IOURingGeteventsArg.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newIOURingGeteventsArg.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
calloc
public static IOURingGeteventsArg.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newIOURingGeteventsArg.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nsigmask
public static long nsigmask(long struct)
Unsafe version ofsigmask()
.
-
nsigmask_sz
public static int nsigmask_sz(long struct)
Unsafe version ofsigmask_sz()
.
-
npad
public static int npad(long struct)
Unsafe version ofpad()
.
-
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
.
-
npad
public static void npad(long struct, int value)
Unsafe version ofpad
.
-
nts
public static void nts(long struct, long value)
Unsafe version ofts
.
-
-