public class AIMetaData
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
mNumProperties – Length of the mKeys and mValues arrays, respectivelymKeys – Arrays of keys, may not be NULL. Entries in this array may not be NULL as well.mValues – Arrays of values, may not be NULL. Entries in this array may be NULL if the corresponding property key has no assigned value.
struct aiMetadata {
unsigned int mNumProperties;
struct aiString * mKeys;
struct aiMetadataEntry * mValues;
}| Modifier and Type | Class and Description |
|---|---|
static class |
AIMetaData.Buffer
An array of
AIMetaData structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
MKEYS
The struct member offsets.
|
static int |
MNUMPROPERTIES
The struct member offsets.
|
static int |
MVALUES
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
AIMetaData(java.nio.ByteBuffer container)
Creates a
AIMetaData instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static AIMetaData |
calloc()
Returns a new
AIMetaData instance allocated with memCalloc. |
static AIMetaData.Buffer |
calloc(int capacity)
Returns a new
AIMetaData.Buffer instance allocated with memCalloc. |
static AIMetaData |
callocStack()
Returns a new
AIMetaData instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static AIMetaData.Buffer |
callocStack(int capacity)
Returns a new
AIMetaData.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static AIMetaData.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
AIMetaData.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static AIMetaData |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
AIMetaData instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static AIMetaData |
create()
Returns a new
AIMetaData instance allocated with BufferUtils. |
static AIMetaData.Buffer |
create(int capacity)
Returns a new
AIMetaData.Buffer instance allocated with BufferUtils. |
static AIMetaData |
create(long address)
Returns a new
AIMetaData instance for the specified memory address. |
static AIMetaData.Buffer |
create(long address,
int capacity)
Create a
AIMetaData.Buffer instance at the specified memory. |
static AIMetaData |
createSafe(long address)
|
static AIMetaData.Buffer |
createSafe(long address,
int capacity)
|
static AIMetaData |
malloc()
Returns a new
AIMetaData instance allocated with memAlloc. |
static AIMetaData.Buffer |
malloc(int capacity)
Returns a new
AIMetaData.Buffer instance allocated with memAlloc. |
static AIMetaData |
mallocStack()
Returns a new
AIMetaData instance allocated on the thread-local MemoryStack. |
static AIMetaData.Buffer |
mallocStack(int capacity)
Returns a new
AIMetaData.Buffer instance allocated on the thread-local MemoryStack. |
static AIMetaData.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
AIMetaData.Buffer instance allocated on the specified MemoryStack. |
static AIMetaData |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
AIMetaData instance allocated on the specified MemoryStack. |
AIString.Buffer |
mKeys()
Returns a
AIString.Buffer view of the struct array pointed to by the mKeys field. |
AIMetaData |
mKeys(AIString.Buffer value)
Sets the address of the specified
AIString.Buffer to the mKeys field. |
int |
mNumProperties()
Returns the value of the
mNumProperties field. |
AIMetaData |
mNumProperties(int value)
Sets the specified value to the
mNumProperties field. |
AIMetaDataEntry.Buffer |
mValues()
Returns a
AIMetaDataEntry.Buffer view of the struct array pointed to by the mValues field. |
AIMetaData |
mValues(AIMetaDataEntry.Buffer value)
Sets the address of the specified
AIMetaDataEntry.Buffer to the mValues field. |
static AIString.Buffer |
nmKeys(long struct)
Unsafe version of
mKeys(). |
static void |
nmKeys(long struct,
AIString.Buffer value)
Unsafe version of
mKeys. |
static int |
nmNumProperties(long struct)
Unsafe version of
mNumProperties(). |
static void |
nmNumProperties(long struct,
int value)
Sets the specified value to the
mNumProperties field of the specified struct. |
static AIMetaDataEntry.Buffer |
nmValues(long struct)
Unsafe version of
mValues(). |
static void |
nmValues(long struct,
AIMetaDataEntry.Buffer value)
Unsafe version of
mValues. |
AIMetaData |
set(AIMetaData src)
Copies the specified struct data to this struct.
|
AIMetaData |
set(int mNumProperties,
AIString.Buffer mKeys,
AIMetaDataEntry.Buffer mValues)
Initializes this struct with the specified values.
|
int |
sizeof() |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int MNUMPROPERTIES
public static final int MKEYS
public static final int MVALUES
public AIMetaData(java.nio.ByteBuffer container)
AIMetaData 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 int mNumProperties()
mNumProperties field.public AIString.Buffer mKeys()
AIString.Buffer view of the struct array pointed to by the mKeys field.public AIMetaDataEntry.Buffer mValues()
AIMetaDataEntry.Buffer view of the struct array pointed to by the mValues field.public AIMetaData mNumProperties(int value)
mNumProperties field.public AIMetaData mKeys(AIString.Buffer value)
AIString.Buffer to the mKeys field.public AIMetaData mValues(AIMetaDataEntry.Buffer value)
AIMetaDataEntry.Buffer to the mValues field.public AIMetaData set(int mNumProperties, AIString.Buffer mKeys, AIMetaDataEntry.Buffer mValues)
public AIMetaData set(AIMetaData src)
src - the source structpublic static AIMetaData malloc()
AIMetaData instance allocated with memAlloc. The instance must be explicitly freed.public static AIMetaData calloc()
AIMetaData instance allocated with memCalloc. The instance must be explicitly freed.public static AIMetaData create()
AIMetaData instance allocated with BufferUtils.public static AIMetaData create(long address)
AIMetaData instance for the specified memory address.@Nullable public static AIMetaData createSafe(long address)
public static AIMetaData.Buffer malloc(int capacity)
AIMetaData.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static AIMetaData.Buffer calloc(int capacity)
AIMetaData.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static AIMetaData.Buffer create(int capacity)
AIMetaData.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static AIMetaData.Buffer create(long address, int capacity)
AIMetaData.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static AIMetaData.Buffer createSafe(long address, int capacity)
public static AIMetaData mallocStack()
AIMetaData instance allocated on the thread-local MemoryStack.public static AIMetaData callocStack()
AIMetaData instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static AIMetaData mallocStack(org.lwjgl.system.MemoryStack stack)
AIMetaData instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static AIMetaData callocStack(org.lwjgl.system.MemoryStack stack)
AIMetaData instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static AIMetaData.Buffer mallocStack(int capacity)
AIMetaData.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static AIMetaData.Buffer callocStack(int capacity)
AIMetaData.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static AIMetaData.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
AIMetaData.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static AIMetaData.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
AIMetaData.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nmNumProperties(long struct)
mNumProperties().public static AIString.Buffer nmKeys(long struct)
mKeys().public static AIMetaDataEntry.Buffer nmValues(long struct)
mValues().public static void nmNumProperties(long struct,
int value)
mNumProperties field of the specified struct.public static void nmKeys(long struct,
AIString.Buffer value)
mKeys.public static void nmValues(long struct,
AIMetaDataEntry.Buffer value)
mValues.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.