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