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

public Class IOSQRingOffsets

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

Filled with the offset for mmap(2).

Layout


struct io_sqring_offsets {
    __u32 head;
    __u32 tail;
    __u32 ring_mask;
    __u32 ring_entries;
    __u32 flags;
    __u32 dropped;
    __u32 array;
    __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
ARRAY

The struct member offsets.

public static final int
DROPPED

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
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
IOSQRingOffsets(long address, ByteBuffer container)

public
IOSQRingOffsets(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the value of the array field.
array
()

public IOSQRingOffsets
array(int value)

Sets the specified value to the array field.

public static IOSQRingOffsets
calloc()

Returns a new IOSQRingOffsets instance allocated with memCalloc.

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

Returns a new IOSQRingOffsets.Buffer instance allocated with memCalloc.

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

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

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

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

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

Returns a new IOSQRingOffsets instance allocated with BufferUtils.

public static IOSQRingOffsets
create(long address)

Returns a new IOSQRingOffsets instance for the specified memory address.

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

Returns a new IOSQRingOffsets.Buffer instance allocated with BufferUtils.

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

Create a IOSQRingOffsets.Buffer instance at the specified memory.

public static IOSQRingOffsets
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public int

Returns:

the value of the dropped field.
dropped
()

public IOSQRingOffsets
dropped(int value)

Sets the specified value to the dropped field.

public int

Returns:

the value of the flags field.
flags
()

public IOSQRingOffsets
flags(int value)

Sets the specified value to the flags field.

public int

Returns:

the value of the head field.
head
()

public IOSQRingOffsets
head(int value)

Sets the specified value to the head field.

public static IOSQRingOffsets
malloc()

Returns a new IOSQRingOffsets instance allocated with memAlloc.

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

Returns a new IOSQRingOffsets.Buffer instance allocated with memAlloc.

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

Returns a new IOSQRingOffsets instance allocated on the specified MemoryStack.

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

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

public static int
narray(long struct)

Unsafe version of array.

public static void
narray(long struct, int value)

Unsafe version of array.

public static int
ndropped(long struct)

Unsafe version of dropped.

public static void
ndropped(long struct, int value)

Unsafe version of dropped.

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
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 ring_entries field.
ring_entries
()

public IOSQRingOffsets
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 IOSQRingOffsets
ring_mask(int value)

Sets the specified value to the ring_mask field.

public IOSQRingOffsets
set(int head, int tail, int ring_mask, int ring_entries, int flags, int dropped, int array)

Initializes this struct with the specified values.

public IOSQRingOffsets

Returns:

this struct
set
(IOSQRingOffsets
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 IOSQRingOffsets
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.

ARRAYback to summary
public static final int ARRAY

The struct member offsets.

DROPPEDback to summary
public static final int DROPPED

The struct member offsets.

FLAGSback to summary
public static final int FLAGS

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

IOSQRingOffsetsback to summary
protected IOSQRingOffsets(long address, ByteBuffer container)
IOSQRingOffsetsback to summary
public IOSQRingOffsets(ByteBuffer container)

Creates a IOSQRingOffsets 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

arrayback to summary
public int array()
Returns:int

the value of the array field.

Annotations
@NativeType:__u32
arrayback to summary
public IOSQRingOffsets array(int value)

Sets the specified value to the array field.

callocback to summary
public static IOSQRingOffsets calloc()

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

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

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

Parameters
capacity:int

the buffer capacity

callocback to summary
public static IOSQRingOffsets calloc(MemoryStack stack)

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

Returns a new IOSQRingOffsets.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 IOSQRingOffsets 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 IOSQRingOffsets create()

Returns a new IOSQRingOffsets instance allocated with BufferUtils.

createback to summary
public static IOSQRingOffsets create(long address)

Returns a new IOSQRingOffsets instance for the specified memory address.

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

Returns a new IOSQRingOffsets.Buffer instance allocated with BufferUtils.

Parameters
capacity:int

the buffer capacity

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

Create a IOSQRingOffsets.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static IOSQRingOffsets createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

Annotations
@Nullable
droppedback to summary
public int dropped()
Returns:int

the value of the dropped field.

Annotations
@NativeType:__u32
droppedback to summary
public IOSQRingOffsets dropped(int value)

Sets the specified value to the dropped field.

flagsback to summary
public int flags()
Returns:int

the value of the flags field.

Annotations
@NativeType:__u32
flagsback to summary
public IOSQRingOffsets 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 IOSQRingOffsets head(int value)

Sets the specified value to the head field.

mallocback to summary
public static IOSQRingOffsets malloc()

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

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

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

Parameters
capacity:int

the buffer capacity

mallocback to summary
public static IOSQRingOffsets malloc(MemoryStack stack)

Returns a new IOSQRingOffsets instance allocated on the specified MemoryStack.

Parameters
stack:MemoryStack

the stack from which to allocate

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

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

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

narrayback to summary
public static int narray(long struct)

Unsafe version of array.

narrayback to summary
public static void narray(long struct, int value)

Unsafe version of array.

ndroppedback to summary
public static int ndropped(long struct)

Unsafe version of dropped.

ndroppedback to summary
public static void ndropped(long struct, int value)

Unsafe version of dropped.

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.

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.

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 IOSQRingOffsets 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 IOSQRingOffsets ring_mask(int value)

Sets the specified value to the ring_mask field.

setback to summary
public IOSQRingOffsets set(int head, int tail, int ring_mask, int ring_entries, int flags, int dropped, int array)

Initializes this struct with the specified values.

setback to summary
public IOSQRingOffsets set(IOSQRingOffsets src)

Copies the specified struct data to this struct.

Parameters
src:IOSQRingOffsets

the source struct

Returns:IOSQRingOffsets

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 IOSQRingOffsets tail(int value)

Sets the specified value to the tail field.

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

public Class IOSQRingOffsets.Buffer

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

An array of IOSQRingOffsets structs.

Field Summary

Modifier and TypeField and Description
private static final IOSQRingOffsets

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new IOSQRingOffsets.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 array field.
array
()

public IOSQRingOffsets.Buffer
array(int value)

Sets the specified value to the array field.

public int

Returns:

the value of the dropped field.
dropped
()

public IOSQRingOffsets.Buffer
dropped(int value)

Sets the specified value to the dropped field.

public int

Returns:

the value of the flags field.
flags
()

public IOSQRingOffsets.Buffer
flags(int value)

Sets the specified value to the flags field.

protected IOSQRingOffsets
public int

Returns:

the value of the head field.
head
()

public IOSQRingOffsets.Buffer
head(int value)

Sets the specified value to the head field.

public int

Returns:

the value of the ring_entries field.
ring_entries
()

public IOSQRingOffsets.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 IOSQRingOffsets.Buffer
ring_mask(int value)

Sets the specified value to the ring_mask field.

protected IOSQRingOffsets.Buffer
public int

Returns:

the value of the tail field.
tail
()

public IOSQRingOffsets.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 IOSQRingOffsets ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

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

arrayback to summary
public int array()
Returns:int

the value of the array field.

Annotations
@NativeType:__u32
arrayback to summary
public IOSQRingOffsets.Buffer array(int value)

Sets the specified value to the array field.

droppedback to summary
public int dropped()
Returns:int

the value of the dropped field.

Annotations
@NativeType:__u32
droppedback to summary
public IOSQRingOffsets.Buffer dropped(int value)

Sets the specified value to the dropped field.

flagsback to summary
public int flags()
Returns:int

the value of the flags field.

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

Sets the specified value to the flags field.

getElementFactoryback to summary
protected IOSQRingOffsets 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 IOSQRingOffsets.Buffer head(int value)

Sets the specified value to the head 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 IOSQRingOffsets.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 IOSQRingOffsets.Buffer ring_mask(int value)

Sets the specified value to the ring_mask field.

selfback to summary
protected IOSQRingOffsets.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 IOSQRingOffsets.Buffer tail(int value)

Sets the specified value to the tail field.