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

public Class IOCQRingOffsets

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

Layout


struct io_cqring_offsets {
    __u32 head;
    __u32 tail;
    __u32 ring_mask;
    __u32 ring_entries;
    __u32 overflow;
    __u32 cqes;
    __u32 flags;
    __u32 resv1;
    __u64 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
CQES

The struct member offsets.

public static final int
FLAGS

The struct member offsets.

public static final int
HEAD

The struct member offsets.

public static final int
OVERFLOW

The struct member offsets.

public static final int
RESV1

The struct member offsets.

public static final int
RESV2

The struct member offsets.

public static final int
RING_ENTRIES

The struct member offsets.

public static final int
RING_MASK

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
TAIL

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

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

public
IOCQRingOffsets(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
public static IOCQRingOffsets
calloc()

Returns a new IOCQRingOffsets instance allocated with memCalloc.

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

Returns a new IOCQRingOffsets.Buffer instance allocated with memCalloc.

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

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

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

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

public int

Returns:

the value of the cqes field.
cqes
()

public IOCQRingOffsets
cqes(int value)

Sets the specified value to the cqes field.

protected IOCQRingOffsets
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 IOCQRingOffsets
create()

Returns a new IOCQRingOffsets instance allocated with BufferUtils.

public static IOCQRingOffsets
create(long address)

Returns a new IOCQRingOffsets instance for the specified memory address.

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

Returns a new IOCQRingOffsets.Buffer instance allocated with BufferUtils.

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

Create a IOCQRingOffsets.Buffer instance at the specified memory.

public static IOCQRingOffsets
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public int

Returns:

the value of the flags field.
flags
()

public IOCQRingOffsets
flags(int value)

Sets the specified value to the flags field.

public int

Returns:

the value of the head field.
head
()

public IOCQRingOffsets
head(int value)

Sets the specified value to the head field.

public static IOCQRingOffsets
malloc()

Returns a new IOCQRingOffsets instance allocated with memAlloc.

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

Returns a new IOCQRingOffsets.Buffer instance allocated with memAlloc.

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

Returns a new IOCQRingOffsets instance allocated on the specified MemoryStack.

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

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

public static int
ncqes(long struct)

Unsafe version of cqes.

public static void
ncqes(long struct, int value)

Unsafe version of cqes.

public static int
nflags(long struct)

Unsafe version of flags.

public static void
nflags(long struct, int value)

Unsafe version of flags.

public static int
nhead(long struct)

Unsafe version of head.

public static void
nhead(long struct, int value)

Unsafe version of head.

public static int
noverflow(long struct)

Unsafe version of overflow.

public static void
noverflow(long struct, int value)

Unsafe version of overflow.

public static int
nresv1(long struct)

public static void
nresv1(long struct, int value)

public static long
nresv2(long struct)

public static void
nresv2(long struct, long value)

public static int
nring_entries(long struct)

Unsafe version of ring_entries.

public static void
nring_entries(long struct, int value)

Unsafe version of ring_entries.

public static int
nring_mask(long struct)

Unsafe version of ring_mask.

public static void
nring_mask(long struct, int value)

Unsafe version of ring_mask.

public static int
ntail(long struct)

Unsafe version of tail.

public static void
ntail(long struct, int value)

Unsafe version of tail.

public int

Returns:

the value of the overflow field.
overflow
()

public IOCQRingOffsets
overflow(int value)

Sets the specified value to the overflow field.

public int

Returns:

the value of the ring_entries field.
ring_entries
()

public IOCQRingOffsets
ring_entries(int value)

Sets the specified value to the ring_entries field.

public int

Returns:

the value of the ring_mask field.
ring_mask
()

public IOCQRingOffsets
ring_mask(int value)

Sets the specified value to the ring_mask field.

public IOCQRingOffsets
set(int head, int tail, int ring_mask, int ring_entries, int overflow, int cqes, int flags)

Initializes this struct with the specified values.

public IOCQRingOffsets

Returns:

this struct
set
(IOCQRingOffsets
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).
public int

Returns:

the value of the tail field.
tail
()

public IOCQRingOffsets
tail(int value)

Sets the specified value to the tail field.

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.

CQESback to summary
public static final int CQES

The struct member offsets.

FLAGSback to summary
public static final int FLAGS

The struct member offsets.

OVERFLOWback to summary
public static final int OVERFLOW

The struct member offsets.

RESV1back to summary
public static final int RESV1

The struct member offsets.

RESV2back to summary
public static final int RESV2

The struct member offsets.

RING_ENTRIESback to summary
public static final int RING_ENTRIES

The struct member offsets.

RING_MASKback to summary
public static final int RING_MASK

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

TAILback to summary
public static final int TAIL

The struct member offsets.

Constructor Detail

IOCQRingOffsetsback to summary
protected IOCQRingOffsets(long address, ByteBuffer container)
IOCQRingOffsetsback to summary
public IOCQRingOffsets(ByteBuffer container)

Creates a IOCQRingOffsets 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 IOCQRingOffsets calloc()

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

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

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

Parameters
capacity:int

the buffer capacity

callocback to summary
public static IOCQRingOffsets calloc(MemoryStack stack)

Returns a new IOCQRingOffsets 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 IOCQRingOffsets.Buffer calloc(int capacity, MemoryStack stack)

Returns a new IOCQRingOffsets.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

cqesback to summary
public int cqes()
Returns:int

the value of the cqes field.

Annotations
@NativeType:__u32
cqesback to summary
public IOCQRingOffsets cqes(int value)

Sets the specified value to the cqes field.

createback to summary
protected IOCQRingOffsets 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 IOCQRingOffsets create()

Returns a new IOCQRingOffsets instance allocated with BufferUtils.

createback to summary
public static IOCQRingOffsets create(long address)

Returns a new IOCQRingOffsets instance for the specified memory address.

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

Returns a new IOCQRingOffsets.Buffer instance allocated with BufferUtils.

Parameters
capacity:int

the buffer capacity

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

Create a IOCQRingOffsets.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static IOCQRingOffsets createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

Annotations
@Nullable
flagsback to summary
public int flags()
Returns:int

the value of the flags field.

Annotations
@NativeType:__u32
flagsback to summary
public IOCQRingOffsets flags(int value)

Sets the specified value to the flags field.

headback to summary
public int head()
Returns:int

the value of the head field.

Annotations
@NativeType:__u32
headback to summary
public IOCQRingOffsets head(int value)

Sets the specified value to the head field.

mallocback to summary
public static IOCQRingOffsets malloc()

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

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

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

Parameters
capacity:int

the buffer capacity

mallocback to summary
public static IOCQRingOffsets malloc(MemoryStack stack)

Returns a new IOCQRingOffsets instance allocated on the specified MemoryStack.

Parameters
stack:MemoryStack

the stack from which to allocate

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

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

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

ncqesback to summary
public static int ncqes(long struct)

Unsafe version of cqes.

ncqesback to summary
public static void ncqes(long struct, int value)

Unsafe version of cqes.

nflagsback to summary
public static int nflags(long struct)

Unsafe version of flags.

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

Unsafe version of flags.

nheadback to summary
public static int nhead(long struct)

Unsafe version of head.

nheadback to summary
public static void nhead(long struct, int value)

Unsafe version of head.

noverflowback to summary
public static int noverflow(long struct)

Unsafe version of overflow.

noverflowback to summary
public static void noverflow(long struct, int value)

Unsafe version of overflow.

nresv1back to summary
public static int nresv1(long struct)
nresv1back to summary
public static void nresv1(long struct, int value)
nresv2back to summary
public static long nresv2(long struct)
nresv2back to summary
public static void nresv2(long struct, long value)
nring_entriesback to summary
public static int nring_entries(long struct)

Unsafe version of ring_entries.

nring_entriesback to summary
public static void nring_entries(long struct, int value)

Unsafe version of ring_entries.

nring_maskback to summary
public static int nring_mask(long struct)

Unsafe version of ring_mask.

nring_maskback to summary
public static void nring_mask(long struct, int value)

Unsafe version of ring_mask.

ntailback to summary
public static int ntail(long struct)

Unsafe version of tail.

ntailback to summary
public static void ntail(long struct, int value)

Unsafe version of tail.

overflowback to summary
public int overflow()
Returns:int

the value of the overflow field.

Annotations
@NativeType:__u32
overflowback to summary
public IOCQRingOffsets overflow(int value)

Sets the specified value to the overflow field.

ring_entriesback to summary
public int ring_entries()
Returns:int

the value of the ring_entries field.

Annotations
@NativeType:__u32
ring_entriesback to summary
public IOCQRingOffsets ring_entries(int value)

Sets the specified value to the ring_entries field.

ring_maskback to summary
public int ring_mask()
Returns:int

the value of the ring_mask field.

Annotations
@NativeType:__u32
ring_maskback to summary
public IOCQRingOffsets ring_mask(int value)

Sets the specified value to the ring_mask field.

setback to summary
public IOCQRingOffsets set(int head, int tail, int ring_mask, int ring_entries, int overflow, int cqes, int flags)

Initializes this struct with the specified values.

setback to summary
public IOCQRingOffsets set(IOCQRingOffsets src)

Copies the specified struct data to this struct.

Parameters
src:IOCQRingOffsets

the source struct

Returns:IOCQRingOffsets

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
tailback to summary
public int tail()
Returns:int

the value of the tail field.

Annotations
@NativeType:__u32
tailback to summary
public IOCQRingOffsets tail(int value)

Sets the specified value to the tail field.

org.lwjgl.system.linux.liburing back to summary

public Class IOCQRingOffsets.Buffer

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

An array of IOCQRingOffsets structs.

Field Summary

Modifier and TypeField and Description
private static final IOCQRingOffsets

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new IOCQRingOffsets.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 int

Returns:

the value of the cqes field.
cqes
()

public IOCQRingOffsets.Buffer
cqes(int value)

Sets the specified value to the cqes field.

public int

Returns:

the value of the flags field.
flags
()

public IOCQRingOffsets.Buffer
flags(int value)

Sets the specified value to the flags field.

protected IOCQRingOffsets
public int

Returns:

the value of the head field.
head
()

public IOCQRingOffsets.Buffer
head(int value)

Sets the specified value to the head field.

public int

Returns:

the value of the overflow field.
overflow
()

public IOCQRingOffsets.Buffer
overflow(int value)

Sets the specified value to the overflow field.

public int

Returns:

the value of the ring_entries field.
ring_entries
()

public IOCQRingOffsets.Buffer
ring_entries(int value)

Sets the specified value to the ring_entries field.

public int

Returns:

the value of the ring_mask field.
ring_mask
()

public IOCQRingOffsets.Buffer
ring_mask(int value)

Sets the specified value to the ring_mask field.

protected IOCQRingOffsets.Buffer
public int

Returns:

the value of the tail field.
tail
()

public IOCQRingOffsets.Buffer
tail(int value)

Sets the specified value to the tail field.

Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final IOCQRingOffsets ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new IOCQRingOffsets.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 IOCQRingOffsets#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

cqesback to summary
public int cqes()
Returns:int

the value of the cqes field.

Annotations
@NativeType:__u32
cqesback to summary
public IOCQRingOffsets.Buffer cqes(int value)

Sets the specified value to the cqes field.

flagsback to summary
public int flags()
Returns:int

the value of the flags field.

Annotations
@NativeType:__u32
flagsback to summary
public IOCQRingOffsets.Buffer flags(int value)

Sets the specified value to the flags field.

getElementFactoryback to summary
protected IOCQRingOffsets getElementFactory()

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

Annotations
@Override
headback to summary
public int head()
Returns:int

the value of the head field.

Annotations
@NativeType:__u32
headback to summary
public IOCQRingOffsets.Buffer head(int value)

Sets the specified value to the head field.

overflowback to summary
public int overflow()
Returns:int

the value of the overflow field.

Annotations
@NativeType:__u32
overflowback to summary
public IOCQRingOffsets.Buffer overflow(int value)

Sets the specified value to the overflow field.

ring_entriesback to summary
public int ring_entries()
Returns:int

the value of the ring_entries field.

Annotations
@NativeType:__u32
ring_entriesback to summary
public IOCQRingOffsets.Buffer ring_entries(int value)

Sets the specified value to the ring_entries field.

ring_maskback to summary
public int ring_mask()
Returns:int

the value of the ring_mask field.

Annotations
@NativeType:__u32
ring_maskback to summary
public IOCQRingOffsets.Buffer ring_mask(int value)

Sets the specified value to the ring_mask field.

selfback to summary
protected IOCQRingOffsets.Buffer self()

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

Annotations
@Override
tailback to summary
public int tail()
Returns:int

the value of the tail field.

Annotations
@NativeType:__u32
tailback to summary
public IOCQRingOffsets.Buffer tail(int value)

Sets the specified value to the tail field.