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

public Class IOURingRSRCRegister

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

Layout


struct io_uring_rsrc_register {
    __u32 nr;
    __u32 flags;
    __u64 resv2;
    __u64 data;
    __u64 tags;
}

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
DATA

The struct member offsets.

public static final int
FLAGS

The struct member offsets.

public static final int
NR

The struct member offsets.

public static final int
RESV2

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
TAGS

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

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

public
IOURingRSRCRegister(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
public static IOURingRSRCRegister
calloc()

Returns a new IOURingRSRCRegister instance allocated with memCalloc.

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

Returns a new IOURingRSRCRegister.Buffer instance allocated with memCalloc.

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

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

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

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

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

Returns a new IOURingRSRCRegister instance allocated with BufferUtils.

public static IOURingRSRCRegister
create(long address)

Returns a new IOURingRSRCRegister instance for the specified memory address.

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

Returns a new IOURingRSRCRegister.Buffer instance allocated with BufferUtils.

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

Create a IOURingRSRCRegister.Buffer instance at the specified memory.

public static IOURingRSRCRegister
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public long

Returns:

the value of the data field.
data
()

public IOURingRSRCRegister
data(long value)

Sets the specified value to the data field.

public int

Returns:

the value of the flags field.
flags
()

public IOURingRSRCRegister
flags(int value)

Sets the specified value to the flags field.

public static IOURingRSRCRegister
malloc()

Returns a new IOURingRSRCRegister instance allocated with memAlloc.

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

Returns a new IOURingRSRCRegister.Buffer instance allocated with memAlloc.

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

Returns a new IOURingRSRCRegister instance allocated on the specified MemoryStack.

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

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

public static long
ndata(long struct)

Unsafe version of data.

public static void
ndata(long struct, long value)

Unsafe version of data.

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
nnr(long struct)

Unsafe version of nr.

public static void
nnr(long struct, int value)

Unsafe version of nr.

public int

Returns:

the value of the nr field.
nr
()

public IOURingRSRCRegister
nr(int value)

Sets the specified value to the nr field.

public static long
nresv2(long struct)

Unsafe version of resv2.

public static void
nresv2(long struct, long value)

Unsafe version of resv2.

public static long
ntags(long struct)

Unsafe version of tags.

public static void
ntags(long struct, long value)

Unsafe version of tags.

public long

Returns:

the value of the resv2 field.
resv2
()

public IOURingRSRCRegister
resv2(long value)

Sets the specified value to the resv2 field.

public IOURingRSRCRegister
set(int nr, int flags, long resv2, long data, long tags)

Initializes this struct with the specified values.

public IOURingRSRCRegister

Returns:

this struct
set
(IOURingRSRCRegister
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 long

Returns:

the value of the tags field.
tags
()

public IOURingRSRCRegister
tags(long value)

Sets the specified value to the tags 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.

DATAback to summary
public static final int DATA

The struct member offsets.

FLAGSback to summary
public static final int FLAGS

The struct member offsets.

NRback to summary
public static final int NR

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.

TAGSback to summary
public static final int TAGS

The struct member offsets.

Constructor Detail

IOURingRSRCRegisterback to summary
protected IOURingRSRCRegister(long address, ByteBuffer container)
IOURingRSRCRegisterback to summary
public IOURingRSRCRegister(ByteBuffer container)

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

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

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

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

Parameters
capacity:int

the buffer capacity

callocback to summary
public static IOURingRSRCRegister calloc(MemoryStack stack)

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

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

Returns a new IOURingRSRCRegister instance allocated with BufferUtils.

createback to summary
public static IOURingRSRCRegister create(long address)

Returns a new IOURingRSRCRegister instance for the specified memory address.

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

Returns a new IOURingRSRCRegister.Buffer instance allocated with BufferUtils.

Parameters
capacity:int

the buffer capacity

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

Create a IOURingRSRCRegister.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static IOURingRSRCRegister createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

Annotations
@Nullable
databack to summary
public long data()
Returns:long

the value of the data field.

Annotations
@NativeType:__u64
databack to summary
public IOURingRSRCRegister data(long value)

Sets the specified value to the data field.

flagsback to summary
public int flags()
Returns:int

the value of the flags field.

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

Sets the specified value to the flags field.

mallocback to summary
public static IOURingRSRCRegister malloc()

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

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

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

Parameters
capacity:int

the buffer capacity

mallocback to summary
public static IOURingRSRCRegister malloc(MemoryStack stack)

Returns a new IOURingRSRCRegister instance allocated on the specified MemoryStack.

Parameters
stack:MemoryStack

the stack from which to allocate

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

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

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

ndataback to summary
public static long ndata(long struct)

Unsafe version of data.

ndataback to summary
public static void ndata(long struct, long value)

Unsafe version of data.

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.

nnrback to summary
public static int nnr(long struct)

Unsafe version of nr.

nnrback to summary
public static void nnr(long struct, int value)

Unsafe version of nr.

nrback to summary
public int nr()
Returns:int

the value of the nr field.

Annotations
@NativeType:__u32
nrback to summary
public IOURingRSRCRegister nr(int value)

Sets the specified value to the nr field.

nresv2back to summary
public static long nresv2(long struct)

Unsafe version of resv2.

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

Unsafe version of resv2.

ntagsback to summary
public static long ntags(long struct)

Unsafe version of tags.

ntagsback to summary
public static void ntags(long struct, long value)

Unsafe version of tags.

resv2back to summary
public long resv2()
Returns:long

the value of the resv2 field.

Annotations
@NativeType:__u64
resv2back to summary
public IOURingRSRCRegister resv2(long value)

Sets the specified value to the resv2 field.

setback to summary
public IOURingRSRCRegister set(int nr, int flags, long resv2, long data, long tags)

Initializes this struct with the specified values.

setback to summary
public IOURingRSRCRegister set(IOURingRSRCRegister src)

Copies the specified struct data to this struct.

Parameters
src:IOURingRSRCRegister

the source struct

Returns:IOURingRSRCRegister

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
tagsback to summary
public long tags()
Returns:long

the value of the tags field.

Annotations
@NativeType:__u64
tagsback to summary
public IOURingRSRCRegister tags(long value)

Sets the specified value to the tags field.

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

public Class IOURingRSRCRegister.Buffer

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

An array of IOURingRSRCRegister structs.

Field Summary

Modifier and TypeField and Description
private static final IOURingRSRCRegister

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new IOURingRSRCRegister.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 long

Returns:

the value of the data field.
data
()

public IOURingRSRCRegister.Buffer
data(long value)

Sets the specified value to the data field.

public int

Returns:

the value of the flags field.
flags
()

public IOURingRSRCRegister.Buffer
flags(int value)

Sets the specified value to the flags field.

protected IOURingRSRCRegister
public int

Returns:

the value of the nr field.
nr
()

public IOURingRSRCRegister.Buffer
nr(int value)

Sets the specified value to the nr field.

public long

Returns:

the value of the resv2 field.
resv2
()

public IOURingRSRCRegister.Buffer
resv2(long value)

Sets the specified value to the resv2 field.

protected IOURingRSRCRegister.Buffer
public long

Returns:

the value of the tags field.
tags
()

public IOURingRSRCRegister.Buffer
tags(long value)

Sets the specified value to the tags field.

Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final IOURingRSRCRegister ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

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

databack to summary
public long data()
Returns:long

the value of the data field.

Annotations
@NativeType:__u64
databack to summary
public IOURingRSRCRegister.Buffer data(long value)

Sets the specified value to the data field.

flagsback to summary
public int flags()
Returns:int

the value of the flags field.

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

Sets the specified value to the flags field.

getElementFactoryback to summary
protected IOURingRSRCRegister getElementFactory()

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

Annotations
@Override
nrback to summary
public int nr()
Returns:int

the value of the nr field.

Annotations
@NativeType:__u32
nrback to summary
public IOURingRSRCRegister.Buffer nr(int value)

Sets the specified value to the nr field.

resv2back to summary
public long resv2()
Returns:long

the value of the resv2 field.

Annotations
@NativeType:__u64
resv2back to summary
public IOURingRSRCRegister.Buffer resv2(long value)

Sets the specified value to the resv2 field.

selfback to summary
protected IOURingRSRCRegister.Buffer self()

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

Annotations
@Override
tagsback to summary
public long tags()
Returns:long

the value of the tags field.

Annotations
@NativeType:__u64
tagsback to summary
public IOURingRSRCRegister.Buffer tags(long value)

Sets the specified value to the tags field.