public class CompactValue
extends org.lwjgl.system.Struct
struct CompactValue {
union {
float value;
uint32_t repr;
};
}| Modifier and Type | Class and Description |
|---|---|
static class |
CompactValue.Buffer
An array of
CompactValue structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
REPR
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
VALUE
The struct member offsets.
|
| Constructor and Description |
|---|
CompactValue(java.nio.ByteBuffer container)
Creates a
CompactValue instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static CompactValue |
create(long address)
Returns a new
CompactValue instance for the specified memory address. |
static CompactValue.Buffer |
create(long address,
int capacity)
Create a
CompactValue.Buffer instance at the specified memory. |
static CompactValue |
createSafe(long address)
|
static CompactValue.Buffer |
createSafe(long address,
int capacity)
|
float |
decode() |
YGValue |
decode(YGValue __result) |
static int |
nrepr(long struct)
Unsafe version of
repr(). |
static float |
nvalue(long struct)
Unsafe version of
value(). |
int |
repr()
Returns the value of the
repr field. |
int |
sizeof() |
float |
value()
Returns the value of the
value field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int VALUE
public static final int REPR
public CompactValue(java.nio.ByteBuffer container)
CompactValue 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic float value()
value field.public int repr()
repr field.public static CompactValue create(long address)
CompactValue instance for the specified memory address.@Nullable public static CompactValue createSafe(long address)
public static CompactValue.Buffer create(long address, int capacity)
CompactValue.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static CompactValue.Buffer createSafe(long address, int capacity)
public static float nvalue(long struct)
value().public static int nrepr(long struct)
repr().public float decode()
Copyright LWJGL. All Rights Reserved. License terms.