Top Description Inners Fields Constructors Methods
org.lwjgl.util.remotery

public Class RMTPropertyValue

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

A property value as a union of all its possible types.

Layout


union rmtPropertyValue {
    rmtBool Bool;
    rmtS32 S32;
    rmtU32 U32;
    rmtF32 F32;
    rmtS64 S64;
    rmtU64 U64;
    rmtF64 F64;
}

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
BOOL

The struct member offsets.

public static final int
F32

The struct member offsets.

public static final int
F64

The struct member offsets.

public static final int
S32

The struct member offsets.

public static final int
S64

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
U32

The struct member offsets.

public static final int
U64

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

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

public
RMTPropertyValue(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

the value of the Bool field.
Bool
()

public RMTPropertyValue
Bool(boolean value)

Sets the specified value to the Bool field.

public static RMTPropertyValue
calloc()

Returns a new RMTPropertyValue instance allocated with memCalloc.

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

Returns a new RMTPropertyValue.Buffer instance allocated with memCalloc.

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

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

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

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

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

Returns a new RMTPropertyValue instance allocated with BufferUtils.

public static RMTPropertyValue
create(long address)

Returns a new RMTPropertyValue instance for the specified memory address.

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

Returns a new RMTPropertyValue.Buffer instance allocated with BufferUtils.

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

Create a RMTPropertyValue.Buffer instance at the specified memory.

public static RMTPropertyValue
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public float

Returns:

the value of the F32 field.
F32
()

public RMTPropertyValue
F32(float value)

Sets the specified value to the F32 field.

public double

Returns:

the value of the F64 field.
F64
()

public RMTPropertyValue
F64(double value)

Sets the specified value to the F64 field.

public static RMTPropertyValue
malloc()

Returns a new RMTPropertyValue instance allocated with memAlloc.

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

Returns a new RMTPropertyValue.Buffer instance allocated with memAlloc.

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

Returns a new RMTPropertyValue instance allocated on the specified MemoryStack.

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

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

public static int
nBool(long struct)

Unsafe version of Bool.

public static void
nBool(long struct, int value)

Unsafe version of Bool.

public static float
nF32(long struct)

Unsafe version of F32.

public static void
nF32(long struct, float value)

Unsafe version of F32.

public static double
nF64(long struct)

Unsafe version of F64.

public static void
nF64(long struct, double value)

Unsafe version of F64.

public static int
nS32(long struct)

Unsafe version of S32.

public static void
nS32(long struct, int value)

Unsafe version of S32.

public static long
nS64(long struct)

Unsafe version of S64.

public static void
nS64(long struct, long value)

Unsafe version of S64.

public static int
nU32(long struct)

Unsafe version of U32.

public static void
nU32(long struct, int value)

Unsafe version of U32.

public static long
nU64(long struct)

Unsafe version of U64.

public static void
nU64(long struct, long value)

Unsafe version of U64.

public int

Returns:

the value of the S32 field.
S32
()

public RMTPropertyValue
S32(int value)

Sets the specified value to the S32 field.

public long

Returns:

the value of the S64 field.
S64
()

public RMTPropertyValue
S64(long value)

Sets the specified value to the S64 field.

public RMTPropertyValue

Returns:

this struct
set
(RMTPropertyValue
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 U32 field.
U32
()

public RMTPropertyValue
U32(int value)

Sets the specified value to the U32 field.

public long

Returns:

the value of the U64 field.
U64
()

public RMTPropertyValue
U64(long value)

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

BOOLback to summary
public static final int BOOL

The struct member offsets.

F32back to summary
public static final int F32

The struct member offsets.

F64back to summary
public static final int F64

The struct member offsets.

S32back to summary
public static final int S32

The struct member offsets.

S64back to summary
public static final int S64

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

U32back to summary
public static final int U32

The struct member offsets.

U64back to summary
public static final int U64

The struct member offsets.

Constructor Detail

RMTPropertyValueback to summary
protected RMTPropertyValue(long address, ByteBuffer container)
RMTPropertyValueback to summary
public RMTPropertyValue(ByteBuffer container)

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

Boolback to summary
public boolean Bool()
Returns:boolean

the value of the Bool field.

Annotations
@NativeType:rmtBool
Boolback to summary
public RMTPropertyValue Bool(boolean value)

Sets the specified value to the Bool field.

callocback to summary
public static RMTPropertyValue calloc()

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

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

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

Parameters
capacity:int

the buffer capacity

callocback to summary
public static RMTPropertyValue calloc(MemoryStack stack)

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

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

Returns a new RMTPropertyValue instance allocated with BufferUtils.

createback to summary
public static RMTPropertyValue create(long address)

Returns a new RMTPropertyValue instance for the specified memory address.

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

Returns a new RMTPropertyValue.Buffer instance allocated with BufferUtils.

Parameters
capacity:int

the buffer capacity

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

Create a RMTPropertyValue.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static RMTPropertyValue createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

Annotations
@Nullable
F32back to summary
public float F32()
Returns:float

the value of the F32 field.

Annotations
@NativeType:rmtF32
F32back to summary
public RMTPropertyValue F32(float value)

Sets the specified value to the F32 field.

F64back to summary
public double F64()
Returns:double

the value of the F64 field.

Annotations
@NativeType:rmtF64
F64back to summary
public RMTPropertyValue F64(double value)

Sets the specified value to the F64 field.

mallocback to summary
public static RMTPropertyValue malloc()

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

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

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

Parameters
capacity:int

the buffer capacity

mallocback to summary
public static RMTPropertyValue malloc(MemoryStack stack)

Returns a new RMTPropertyValue instance allocated on the specified MemoryStack.

Parameters
stack:MemoryStack

the stack from which to allocate

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

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

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

nBoolback to summary
public static int nBool(long struct)

Unsafe version of Bool.

nBoolback to summary
public static void nBool(long struct, int value)

Unsafe version of Bool.

nF32back to summary
public static float nF32(long struct)

Unsafe version of F32.

nF32back to summary
public static void nF32(long struct, float value)

Unsafe version of F32.

nF64back to summary
public static double nF64(long struct)

Unsafe version of F64.

nF64back to summary
public static void nF64(long struct, double value)

Unsafe version of F64.

nS32back to summary
public static int nS32(long struct)

Unsafe version of S32.

nS32back to summary
public static void nS32(long struct, int value)

Unsafe version of S32.

nS64back to summary
public static long nS64(long struct)

Unsafe version of S64.

nS64back to summary
public static void nS64(long struct, long value)

Unsafe version of S64.

nU32back to summary
public static int nU32(long struct)

Unsafe version of U32.

nU32back to summary
public static void nU32(long struct, int value)

Unsafe version of U32.

nU64back to summary
public static long nU64(long struct)

Unsafe version of U64.

nU64back to summary
public static void nU64(long struct, long value)

Unsafe version of U64.

S32back to summary
public int S32()
Returns:int

the value of the S32 field.

Annotations
@NativeType:rmtS32
S32back to summary
public RMTPropertyValue S32(int value)

Sets the specified value to the S32 field.

S64back to summary
public long S64()
Returns:long

the value of the S64 field.

Annotations
@NativeType:rmtS64
S64back to summary
public RMTPropertyValue S64(long value)

Sets the specified value to the S64 field.

setback to summary
public RMTPropertyValue set(RMTPropertyValue src)

Copies the specified struct data to this struct.

Parameters
src:RMTPropertyValue

the source struct

Returns:RMTPropertyValue

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

the value of the U32 field.

Annotations
@NativeType:rmtU32
U32back to summary
public RMTPropertyValue U32(int value)

Sets the specified value to the U32 field.

U64back to summary
public long U64()
Returns:long

the value of the U64 field.

Annotations
@NativeType:rmtU64
U64back to summary
public RMTPropertyValue U64(long value)

Sets the specified value to the U64 field.

org.lwjgl.util.remotery back to summary

public Class RMTPropertyValue.Buffer

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

An array of RMTPropertyValue structs.

Field Summary

Modifier and TypeField and Description
private static final RMTPropertyValue

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new RMTPropertyValue.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 boolean

Returns:

the value of the Bool field.
Bool
()

public RMTPropertyValue.Buffer
Bool(boolean value)

Sets the specified value to the Bool field.

public float

Returns:

the value of the F32 field.
F32
()

public RMTPropertyValue.Buffer
F32(float value)

Sets the specified value to the F32 field.

public double

Returns:

the value of the F64 field.
F64
()

public RMTPropertyValue.Buffer
F64(double value)

Sets the specified value to the F64 field.

protected RMTPropertyValue
public int

Returns:

the value of the S32 field.
S32
()

public RMTPropertyValue.Buffer
S32(int value)

Sets the specified value to the S32 field.

public long

Returns:

the value of the S64 field.
S64
()

public RMTPropertyValue.Buffer
S64(long value)

Sets the specified value to the S64 field.

protected RMTPropertyValue.Buffer
public int

Returns:

the value of the U32 field.
U32
()

public RMTPropertyValue.Buffer
U32(int value)

Sets the specified value to the U32 field.

public long

Returns:

the value of the U64 field.
U64
()

public RMTPropertyValue.Buffer
U64(long value)

Sets the specified value to the U64 field.

Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final RMTPropertyValue ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

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

Boolback to summary
public boolean Bool()
Returns:boolean

the value of the Bool field.

Annotations
@NativeType:rmtBool
Boolback to summary
public RMTPropertyValue.Buffer Bool(boolean value)

Sets the specified value to the Bool field.

F32back to summary
public float F32()
Returns:float

the value of the F32 field.

Annotations
@NativeType:rmtF32
F32back to summary
public RMTPropertyValue.Buffer F32(float value)

Sets the specified value to the F32 field.

F64back to summary
public double F64()
Returns:double

the value of the F64 field.

Annotations
@NativeType:rmtF64
F64back to summary
public RMTPropertyValue.Buffer F64(double value)

Sets the specified value to the F64 field.

getElementFactoryback to summary
protected RMTPropertyValue getElementFactory()

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

Annotations
@Override
S32back to summary
public int S32()
Returns:int

the value of the S32 field.

Annotations
@NativeType:rmtS32
S32back to summary
public RMTPropertyValue.Buffer S32(int value)

Sets the specified value to the S32 field.

S64back to summary
public long S64()
Returns:long

the value of the S64 field.

Annotations
@NativeType:rmtS64
S64back to summary
public RMTPropertyValue.Buffer S64(long value)

Sets the specified value to the S64 field.

selfback to summary
protected RMTPropertyValue.Buffer self()

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

Annotations
@Override
U32back to summary
public int U32()
Returns:int

the value of the U32 field.

Annotations
@NativeType:rmtU32
U32back to summary
public RMTPropertyValue.Buffer U32(int value)

Sets the specified value to the U32 field.

U64back to summary
public long U64()
Returns:long

the value of the U64 field.

Annotations
@NativeType:rmtU64
U64back to summary
public RMTPropertyValue.Buffer U64(long value)

Sets the specified value to the U64 field.