Package org.lwjgl.system.linux.liburing
Class IOURingProbeOp
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.system.linux.liburing.IOURingProbeOp
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class IOURingProbeOp extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Layout
struct io_uring_probe_op { __u8 op; __u8 resv; __u16
flags()
; __u32 resv2; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IOURingProbeOp.Buffer
An array ofIOURingProbeOp
structs.
-
Constructor Summary
Constructors Constructor Description IOURingProbeOp(java.nio.ByteBuffer container)
Creates aIOURingProbeOp
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 IOURingProbeOp
calloc()
Returns a newIOURingProbeOp
instance allocated withmemCalloc
.static IOURingProbeOp.Buffer
calloc(int capacity)
Returns a newIOURingProbeOp.Buffer
instance allocated withmemCalloc
.static IOURingProbeOp.Buffer
calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newIOURingProbeOp.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOURingProbeOp
calloc(org.lwjgl.system.MemoryStack stack)
Returns a newIOURingProbeOp
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static IOURingProbeOp
create()
Returns a newIOURingProbeOp
instance allocated withBufferUtils
.static IOURingProbeOp.Buffer
create(int capacity)
Returns a newIOURingProbeOp.Buffer
instance allocated withBufferUtils
.static IOURingProbeOp
create(long address)
Returns a newIOURingProbeOp
instance for the specified memory address.static IOURingProbeOp.Buffer
create(long address, int capacity)
Create aIOURingProbeOp.Buffer
instance at the specified memory.static IOURingProbeOp
createSafe(long address)
static IOURingProbeOp.Buffer
createSafe(long address, int capacity)
short
flags()
one or more of:LibIOURing.IO_URING_OP_SUPPORTED
IOURingProbeOp
flags(short value)
Sets the specified value to theflags()
field.static IOURingProbeOp
malloc()
Returns a newIOURingProbeOp
instance allocated withmemAlloc
.static IOURingProbeOp.Buffer
malloc(int capacity)
Returns a newIOURingProbeOp.Buffer
instance allocated withmemAlloc
.static IOURingProbeOp.Buffer
malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newIOURingProbeOp.Buffer
instance allocated on the specifiedMemoryStack
.static IOURingProbeOp
malloc(org.lwjgl.system.MemoryStack stack)
Returns a newIOURingProbeOp
instance allocated on the specifiedMemoryStack
.static short
nflags(long struct)
Unsafe version offlags()
.static void
nflags(long struct, short value)
Unsafe version offlags
.static byte
nop(long struct)
Unsafe version ofop()
.static void
nop(long struct, byte value)
Unsafe version ofop
.static byte
nresv(long struct)
Unsafe version ofresv()
.static void
nresv(long struct, byte value)
Unsafe version ofresv
.static int
nresv2(long struct)
Unsafe version ofresv2()
.static void
nresv2(long struct, int value)
Unsafe version ofresv2
.byte
op()
IOURingProbeOp
op(byte value)
Sets the specified value to theop
field.byte
resv()
IOURingProbeOp
resv(byte value)
Sets the specified value to theresv
field.int
resv2()
IOURingProbeOp
resv2(int value)
Sets the specified value to theresv2
field.IOURingProbeOp
set(byte op, byte resv, short flags, int resv2)
Initializes this struct with the specified values.IOURingProbeOp
set(IOURingProbeOp src)
Copies the specified struct data to this struct.int
sizeof()
-
-
-
Constructor Detail
-
IOURingProbeOp
public IOURingProbeOp(java.nio.ByteBuffer container)
Creates aIOURingProbeOp
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
-
op
public byte op()
- Returns:
- the value of the
op
field.
-
resv
public byte resv()
- Returns:
- the value of the
resv
field.
-
flags
public short flags()
one or more of:LibIOURing.IO_URING_OP_SUPPORTED
-
resv2
public int resv2()
- Returns:
- the value of the
resv2
field.
-
op
public IOURingProbeOp op(byte value)
Sets the specified value to theop
field.
-
resv
public IOURingProbeOp resv(byte value)
Sets the specified value to theresv
field.
-
flags
public IOURingProbeOp flags(short value)
Sets the specified value to theflags()
field.
-
resv2
public IOURingProbeOp resv2(int value)
Sets the specified value to theresv2
field.
-
set
public IOURingProbeOp set(byte op, byte resv, short flags, int resv2)
Initializes this struct with the specified values.
-
set
public IOURingProbeOp set(IOURingProbeOp src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static IOURingProbeOp malloc()
Returns a newIOURingProbeOp
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static IOURingProbeOp calloc()
Returns a newIOURingProbeOp
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static IOURingProbeOp create()
Returns a newIOURingProbeOp
instance allocated withBufferUtils
.
-
create
public static IOURingProbeOp create(long address)
Returns a newIOURingProbeOp
instance for the specified memory address.
-
createSafe
@Nullable public static IOURingProbeOp createSafe(long address)
-
malloc
public static IOURingProbeOp.Buffer malloc(int capacity)
Returns a newIOURingProbeOp.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static IOURingProbeOp.Buffer calloc(int capacity)
Returns a newIOURingProbeOp.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static IOURingProbeOp.Buffer create(int capacity)
Returns a newIOURingProbeOp.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static IOURingProbeOp.Buffer create(long address, int capacity)
Create aIOURingProbeOp.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static IOURingProbeOp.Buffer createSafe(long address, int capacity)
-
malloc
public static IOURingProbeOp malloc(org.lwjgl.system.MemoryStack stack)
Returns a newIOURingProbeOp
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
public static IOURingProbeOp calloc(org.lwjgl.system.MemoryStack stack)
Returns a newIOURingProbeOp
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
public static IOURingProbeOp.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newIOURingProbeOp.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
calloc
public static IOURingProbeOp.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newIOURingProbeOp.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nop
public static byte nop(long struct)
Unsafe version ofop()
.
-
nresv
public static byte nresv(long struct)
Unsafe version ofresv()
.
-
nflags
public static short nflags(long struct)
Unsafe version offlags()
.
-
nresv2
public static int nresv2(long struct)
Unsafe version ofresv2()
.
-
nop
public static void nop(long struct, byte value)
Unsafe version ofop
.
-
nresv
public static void nresv(long struct, byte value)
Unsafe version ofresv
.
-
nflags
public static void nflags(long struct, short value)
Unsafe version offlags
.
-
nresv2
public static void nresv2(long struct, int value)
Unsafe version ofresv2
.
-
-