Package org.lwjgl.assimp
Class AIMetaData
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.assimp.AIMetaData
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class AIMetaData extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceMember documentation
mNumProperties– Length of themKeysandmValuesarrays, respectivelymKeys– Arrays of keys, may not beNULL. Entries in this array may not beNULLas well.mValues– Arrays of values, may not beNULL. Entries in this array may beNULLif the corresponding property key has no assigned value.
Layout
struct aiMetadata { unsigned int mNumProperties;struct aiString* mKeys;struct aiMetadataEntry* mValues; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAIMetaData.BufferAn array ofAIMetaDatastructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intMKEYS
MNUMPROPERTIES
MVALUESThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description AIMetaData(java.nio.ByteBuffer container)Creates aAIMetaDatainstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AIMetaDatacalloc()Returns a newAIMetaDatainstance allocated withmemCalloc.static AIMetaData.Buffercalloc(int capacity)Returns a newAIMetaData.Bufferinstance allocated withmemCalloc.static AIMetaDatacallocStack()Returns a newAIMetaDatainstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static AIMetaData.BuffercallocStack(int capacity)Returns a newAIMetaData.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static AIMetaData.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newAIMetaData.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIMetaDatacallocStack(org.lwjgl.system.MemoryStack stack)Returns a newAIMetaDatainstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIMetaDatacreate()Returns a newAIMetaDatainstance allocated withBufferUtils.static AIMetaData.Buffercreate(int capacity)Returns a newAIMetaData.Bufferinstance allocated withBufferUtils.static AIMetaDatacreate(long address)Returns a newAIMetaDatainstance for the specified memory address.static AIMetaData.Buffercreate(long address, int capacity)Create aAIMetaData.Bufferinstance at the specified memory.static AIMetaDatacreateSafe(long address)static AIMetaData.BuffercreateSafe(long address, int capacity)static AIMetaDatamalloc()Returns a newAIMetaDatainstance allocated withmemAlloc.static AIMetaData.Buffermalloc(int capacity)Returns a newAIMetaData.Bufferinstance allocated withmemAlloc.static AIMetaDatamallocStack()Returns a newAIMetaDatainstance allocated on the thread-localMemoryStack.static AIMetaData.BuffermallocStack(int capacity)Returns a newAIMetaData.Bufferinstance allocated on the thread-localMemoryStack.static AIMetaData.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newAIMetaData.Bufferinstance allocated on the specifiedMemoryStack.static AIMetaDatamallocStack(org.lwjgl.system.MemoryStack stack)Returns a newAIMetaDatainstance allocated on the specifiedMemoryStack.AIString.BuffermKeys()Returns aAIString.Bufferview of the struct array pointed to by themKeysfield.AIMetaDatamKeys(AIString.Buffer value)Sets the address of the specifiedAIString.Bufferto themKeysfield.intmNumProperties()Returns the value of themNumPropertiesfield.AIMetaDatamNumProperties(int value)Sets the specified value to themNumPropertiesfield.AIMetaDataEntry.BuffermValues()Returns aAIMetaDataEntry.Bufferview of the struct array pointed to by themValuesfield.AIMetaDatamValues(AIMetaDataEntry.Buffer value)Sets the address of the specifiedAIMetaDataEntry.Bufferto themValuesfield.static AIString.BuffernmKeys(long struct)Unsafe version ofmKeys().static voidnmKeys(long struct, AIString.Buffer value)Unsafe version ofmKeys.static intnmNumProperties(long struct)Unsafe version ofmNumProperties().static voidnmNumProperties(long struct, int value)Sets the specified value to themNumPropertiesfield of the specifiedstruct.static AIMetaDataEntry.BuffernmValues(long struct)Unsafe version ofmValues().static voidnmValues(long struct, AIMetaDataEntry.Buffer value)Unsafe version ofmValues.AIMetaDataset(int mNumProperties, AIString.Buffer mKeys, AIMetaDataEntry.Buffer mValues)Initializes this struct with the specified values.AIMetaDataset(AIMetaData src)Copies the specified struct data to this struct.intsizeof()static voidvalidate(long struct)Validates pointer members that should not beNULL.static voidvalidate(long array, int count)Callsvalidate(long)for each struct contained in the specified struct array.
-
-
-
Constructor Detail
-
AIMetaData
public AIMetaData(java.nio.ByteBuffer container)
Creates aAIMetaDatainstance at the current position of the specifiedByteBuffercontainer. 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
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
mNumProperties
public int mNumProperties()
Returns the value of themNumPropertiesfield.
-
mKeys
public AIString.Buffer mKeys()
Returns aAIString.Bufferview of the struct array pointed to by themKeysfield.
-
mValues
public AIMetaDataEntry.Buffer mValues()
Returns aAIMetaDataEntry.Bufferview of the struct array pointed to by themValuesfield.
-
mNumProperties
public AIMetaData mNumProperties(int value)
Sets the specified value to themNumPropertiesfield.
-
mKeys
public AIMetaData mKeys(AIString.Buffer value)
Sets the address of the specifiedAIString.Bufferto themKeysfield.
-
mValues
public AIMetaData mValues(AIMetaDataEntry.Buffer value)
Sets the address of the specifiedAIMetaDataEntry.Bufferto themValuesfield.
-
set
public AIMetaData set(int mNumProperties, AIString.Buffer mKeys, AIMetaDataEntry.Buffer mValues)
Initializes this struct with the specified values.
-
set
public AIMetaData set(AIMetaData src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static AIMetaData malloc()
Returns a newAIMetaDatainstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static AIMetaData calloc()
Returns a newAIMetaDatainstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static AIMetaData create()
Returns a newAIMetaDatainstance allocated withBufferUtils.
-
create
public static AIMetaData create(long address)
Returns a newAIMetaDatainstance for the specified memory address.
-
createSafe
@Nullable public static AIMetaData createSafe(long address)
-
malloc
public static AIMetaData.Buffer malloc(int capacity)
Returns a newAIMetaData.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static AIMetaData.Buffer calloc(int capacity)
Returns a newAIMetaData.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static AIMetaData.Buffer create(int capacity)
Returns a newAIMetaData.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static AIMetaData.Buffer create(long address, int capacity)
Create aAIMetaData.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static AIMetaData.Buffer createSafe(long address, int capacity)
-
mallocStack
public static AIMetaData mallocStack()
Returns a newAIMetaDatainstance allocated on the thread-localMemoryStack.
-
callocStack
public static AIMetaData callocStack()
Returns a newAIMetaDatainstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static AIMetaData mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newAIMetaDatainstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static AIMetaData callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newAIMetaDatainstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static AIMetaData.Buffer mallocStack(int capacity)
Returns a newAIMetaData.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static AIMetaData.Buffer callocStack(int capacity)
Returns a newAIMetaData.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static AIMetaData.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIMetaData.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static AIMetaData.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIMetaData.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nmNumProperties
public static int nmNumProperties(long struct)
Unsafe version ofmNumProperties().
-
nmKeys
public static AIString.Buffer nmKeys(long struct)
Unsafe version ofmKeys().
-
nmValues
public static AIMetaDataEntry.Buffer nmValues(long struct)
Unsafe version ofmValues().
-
nmNumProperties
public static void nmNumProperties(long struct, int value)Sets the specified value to themNumPropertiesfield of the specifiedstruct.
-
nmKeys
public static void nmKeys(long struct, AIString.Buffer value)Unsafe version ofmKeys.
-
nmValues
public static void nmValues(long struct, AIMetaDataEntry.Buffer value)Unsafe version ofmValues.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
validate
public static void validate(long array, int count)Callsvalidate(long)for each struct contained in the specified struct array.- Parameters:
array- the struct array to validatecount- the number of structs inarray
-
-