Top Description Inners Fields Constructors Methods
org.lwjgl.system.linux.liburing

public Class IOURingProbeOp

extends Struct<IOURingProbeOp>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Annotations
@NativeType:struct io_uring_probe_op
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Layout


struct io_uring_probe_op {
    __u8 op;
    __u8 resv;
    __u16 flags;
    __u32 resv2;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
FLAGS

The struct member offsets.

public static final int
OP

The struct member offsets.

public static final int
RESV

The struct member offsets.

public static final int
RESV2

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
IOURingProbeOp(long address, ByteBuffer container)

public
IOURingProbeOp(ByteBuffer container)

Creates a IOURingProbeOp instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static IOURingProbeOp
calloc()

Returns a new IOURingProbeOp instance allocated with memCalloc.

public static IOURingProbeOp.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new IOURingProbeOp.Buffer instance allocated with memCalloc.

public static IOURingProbeOp
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new IOURingProbeOp instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static IOURingProbeOp.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new IOURingProbeOp.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

protected IOURingProbeOp
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static IOURingProbeOp
create()

Returns a new IOURingProbeOp instance allocated with BufferUtils.

public static IOURingProbeOp
create(long address)

Returns a new IOURingProbeOp instance for the specified memory address.

public static IOURingProbeOp.Buffer
create(int
the buffer capacity
capacity
)

Returns a new IOURingProbeOp.Buffer instance allocated with BufferUtils.

public static IOURingProbeOp.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a IOURingProbeOp.Buffer instance at the specified memory.

public static IOURingProbeOp
createSafe(long address)

Like create, but returns null if address is NULL.

public static IOURingProbeOp.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public short
public IOURingProbeOp
flags(short value)

Sets the specified value to the flags field.

public static IOURingProbeOp
malloc()

Returns a new IOURingProbeOp instance allocated with memAlloc.

public static IOURingProbeOp.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new IOURingProbeOp.Buffer instance allocated with memAlloc.

public static IOURingProbeOp
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new IOURingProbeOp instance allocated on the specified MemoryStack.

public static IOURingProbeOp.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new IOURingProbeOp.Buffer instance allocated on the specified MemoryStack.

public static short
nflags(long struct)

Unsafe version of flags.

public static void
nflags(long struct, short value)

Unsafe version of flags.

public static byte
nop(long struct)

Unsafe version of op.

public static void
nop(long struct, byte value)

Unsafe version of op.

public static byte
nresv(long struct)

Unsafe version of resv.

public static void
nresv(long struct, byte value)

Unsafe version of resv.

public static int
nresv2(long struct)

Unsafe version of resv2.

public static void
nresv2(long struct, int value)

Unsafe version of resv2.

public byte

Returns:

the value of the op field.
op
()

public IOURingProbeOp
op(byte value)

Sets the specified value to the op field.

public byte

Returns:

the value of the resv field.
resv
()

public IOURingProbeOp
resv(byte value)

Sets the specified value to the resv field.

public int

Returns:

the value of the resv2 field.
resv2
()

public IOURingProbeOp
resv2(int value)

Sets the specified value to the resv2 field.

public IOURingProbeOp
set(byte op, byte resv, short flags, int resv2)

Initializes this struct with the specified values.

public IOURingProbeOp

Returns:

this struct
set
(IOURingProbeOp
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate

Field Detail

ALIGNOFback to summary
public static final int ALIGNOF

The struct alignment in bytes.

FLAGSback to summary
public static final int FLAGS

The struct member offsets.

OPback to summary
public static final int OP

The struct member offsets.

RESVback to summary
public static final int RESV

The struct member offsets.

RESV2back to summary
public static final int RESV2

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

Constructor Detail

IOURingProbeOpback to summary
protected IOURingProbeOp(long address, ByteBuffer container)
IOURingProbeOpback to summary
public IOURingProbeOp(ByteBuffer container)

Creates a IOURingProbeOp instance at the current position of the specified ByteBuffer 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

callocback to summary
public static IOURingProbeOp calloc()

Returns a new IOURingProbeOp instance allocated with memCalloc. The instance must be explicitly freed.

callocback to summary
public static IOURingProbeOp.Buffer calloc(int capacity)

Returns a new IOURingProbeOp.Buffer instance allocated with memCalloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

callocback to summary
public static IOURingProbeOp calloc(MemoryStack stack)

Returns a new IOURingProbeOp instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
stack:MemoryStack

the stack from which to allocate

callocback to summary
public static IOURingProbeOp.Buffer calloc(int capacity, MemoryStack stack)

Returns a new IOURingProbeOp.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

createback to summary
protected IOURingProbeOp create(long address, ByteBuffer container)

Implements abstract org.lwjgl.system.Struct.create.

Doc from org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.

Effectively, every Struct instance is a factory for more instances of the same type. This is used by StructBuffer.

Parameters
address:long

the struct memory address

container:ByteBuffer

an optional container buffer, to be referenced strongly by the struct instance.

Annotations
@Override
createback to summary
public static IOURingProbeOp create()

Returns a new IOURingProbeOp instance allocated with BufferUtils.

createback to summary
public static IOURingProbeOp create(long address)

Returns a new IOURingProbeOp instance for the specified memory address.

createback to summary
public static IOURingProbeOp.Buffer create(int capacity)

Returns a new IOURingProbeOp.Buffer instance allocated with BufferUtils.

Parameters
capacity:int

the buffer capacity

createback to summary
public static IOURingProbeOp.Buffer create(long address, int capacity)

Create a IOURingProbeOp.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static IOURingProbeOp createSafe(long address)

Like create, but returns null if address is NULL.

Annotations
@Nullable
createSafeback to summary
public static IOURingProbeOp.Buffer createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

Annotations
@Nullable
flagsback to summary
public short flags()

one or more of:

LibIOURing#IO_URING_OP_SUPPORTED
Annotations
@NativeType:__u16
flagsback to summary
public IOURingProbeOp flags(short value)

Sets the specified value to the flags field.

mallocback to summary
public static IOURingProbeOp malloc()

Returns a new IOURingProbeOp instance allocated with memAlloc. The instance must be explicitly freed.

mallocback to summary
public static IOURingProbeOp.Buffer malloc(int capacity)

Returns a new IOURingProbeOp.Buffer instance allocated with memAlloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

mallocback to summary
public static IOURingProbeOp malloc(MemoryStack stack)

Returns a new IOURingProbeOp instance allocated on the specified MemoryStack.

Parameters
stack:MemoryStack

the stack from which to allocate

mallocback to summary
public static IOURingProbeOp.Buffer malloc(int capacity, MemoryStack stack)

Returns a new IOURingProbeOp.Buffer instance allocated on the specified MemoryStack.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

nflagsback to summary
public static short nflags(long struct)

Unsafe version of flags.

nflagsback to summary
public static void nflags(long struct, short value)

Unsafe version of flags.

nopback to summary
public static byte nop(long struct)

Unsafe version of op.

nopback to summary
public static void nop(long struct, byte value)

Unsafe version of op.

nresvback to summary
public static byte nresv(long struct)

Unsafe version of resv.

nresvback to summary
public static void nresv(long struct, byte value)

Unsafe version of resv.

nresv2back to summary
public static int nresv2(long struct)

Unsafe version of resv2.

nresv2back to summary
public static void nresv2(long struct, int value)

Unsafe version of resv2.

opback to summary
public byte op()
Returns:byte

the value of the op field.

Annotations
@NativeType:__u8
opback to summary
public IOURingProbeOp op(byte value)

Sets the specified value to the op field.

resvback to summary
public byte resv()
Returns:byte

the value of the resv field.

Annotations
@NativeType:__u8
resvback to summary
public IOURingProbeOp resv(byte value)

Sets the specified value to the resv field.

resv2back to summary
public int resv2()
Returns:int

the value of the resv2 field.

Annotations
@NativeType:__u32
resv2back to summary
public IOURingProbeOp resv2(int value)

Sets the specified value to the resv2 field.

setback to summary
public IOURingProbeOp set(byte op, byte resv, short flags, int resv2)

Initializes this struct with the specified values.

setback to summary
public IOURingProbeOp set(IOURingProbeOp src)

Copies the specified struct data to this struct.

Parameters
src:IOURingProbeOp

the source struct

Returns:IOURingProbeOp

this struct

sizeofback to summary
public int sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Doc from org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).

Annotations
@Override
org.lwjgl.system.linux.liburing back to summary

public Class IOURingProbeOp.Buffer

extends StructBuffer<IOURingProbeOp, IOURingProbeOp.Buffer>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable

An array of IOURingProbeOp structs.

Field Summary

Modifier and TypeField and Description
private static final IOURingProbeOp

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new IOURingProbeOp.Buffer instance backed by the specified container.

public
Buffer(long address, int cap)

pack-priv
Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Summary

Modifier and TypeMethod and Description
public short

Returns:

the value of the IOURingProbeOp#flags field.
flags
()

public IOURingProbeOp.Buffer
flags(short value)

Sets the specified value to the IOURingProbeOp#flags field.

protected IOURingProbeOp
public byte

Returns:

the value of the op field.
op
()

public IOURingProbeOp.Buffer
op(byte value)

Sets the specified value to the op field.

public byte

Returns:

the value of the resv field.
resv
()

public IOURingProbeOp.Buffer
resv(byte value)

Sets the specified value to the resv field.

public int

Returns:

the value of the resv2 field.
resv2
()

public IOURingProbeOp.Buffer
resv2(int value)

Sets the specified value to the resv2 field.

protected IOURingProbeOp.Buffer
Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final IOURingProbeOp ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new IOURingProbeOp.Buffer instance backed by the specified container.

Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by IOURingProbeOp#SIZEOF, and its mark will be undefined.

The created buffer instance holds a strong reference to the container object.

Bufferback to summary
public Buffer(long address, int cap)
Bufferback to summary
pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Detail

flagsback to summary
public short flags()
Returns:short

the value of the IOURingProbeOp#flags field.

Annotations
@NativeType:__u16
flagsback to summary
public IOURingProbeOp.Buffer flags(short value)

Sets the specified value to the IOURingProbeOp#flags field.

getElementFactoryback to summary
protected IOURingProbeOp getElementFactory()

Implements abstract org.lwjgl.system.StructBuffer.getElementFactory.

Annotations
@Override
opback to summary
public byte op()
Returns:byte

the value of the op field.

Annotations
@NativeType:__u8
opback to summary
public IOURingProbeOp.Buffer op(byte value)

Sets the specified value to the op field.

resvback to summary
public byte resv()
Returns:byte

the value of the resv field.

Annotations
@NativeType:__u8
resvback to summary
public IOURingProbeOp.Buffer resv(byte value)

Sets the specified value to the resv field.

resv2back to summary
public int resv2()
Returns:int

the value of the resv2 field.

Annotations
@NativeType:__u32
resv2back to summary
public IOURingProbeOp.Buffer resv2(int value)

Sets the specified value to the resv2 field.

selfback to summary
protected IOURingProbeOp.Buffer self()

Implements abstract org.lwjgl.system.CustomBuffer.self.

Annotations
@Override