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.NativeResourceLayout
struct aiMetadata { unsigned intmNumProperties();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 Deprecated 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 AIMetaData.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newAIMetaData.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIMetaDatacalloc(org.lwjgl.system.MemoryStack stack)Returns a newAIMetaDatainstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIMetaDatacallocStack()Deprecated.static AIMetaData.BuffercallocStack(int capacity)Deprecated.static AIMetaData.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static AIMetaDatacallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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 AIMetaData.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newAIMetaData.Bufferinstance allocated on the specifiedMemoryStack.static AIMetaDatamalloc(org.lwjgl.system.MemoryStack stack)Returns a newAIMetaDatainstance allocated on the specifiedMemoryStack.static AIMetaDatamallocStack()Deprecated.static AIMetaData.BuffermallocStack(int capacity)Deprecated.static AIMetaData.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static AIMetaDatamallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.AIString.BuffermKeys()Arrays of keys, may not beNULL.AIMetaDatamKeys(AIString.Buffer value)Sets the address of the specifiedAIString.Bufferto themKeys()field.intmNumProperties()Length of themKeysandmValuesarrays, respectivelyAIMetaDatamNumProperties(int value)Sets the specified value to themNumProperties()field.AIMetaDataEntry.BuffermValues()Arrays of values, may not beNULL.AIMetaDatamValues(AIMetaDataEntry.Buffer value)Sets the address of the specifiedAIMetaDataEntry.Bufferto themValues()field.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.
-
-
-
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()
Length of themKeysandmValuesarrays, respectively
-
mKeys
public AIString.Buffer mKeys()
Arrays of keys, may not beNULL. Entries in this array may not beNULLas well.
-
mValues
public AIMetaDataEntry.Buffer mValues()
Arrays of values, may not beNULL. Entries in this array may beNULLif the corresponding property key has no assigned value.
-
mNumProperties
public AIMetaData mNumProperties(int value)
Sets the specified value to themNumProperties()field.
-
mKeys
public AIMetaData mKeys(AIString.Buffer value)
Sets the address of the specifiedAIString.Bufferto themKeys()field.
-
mValues
public AIMetaData mValues(AIMetaDataEntry.Buffer value)
Sets the address of the specifiedAIMetaDataEntry.Bufferto themValues()field.
-
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
@Deprecated public static AIMetaData mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static AIMetaData callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static AIMetaData mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static AIMetaData callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static AIMetaData.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static AIMetaData.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static AIMetaData.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static AIMetaData.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static AIMetaData malloc(org.lwjgl.system.MemoryStack stack)
Returns a newAIMetaDatainstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static AIMetaData calloc(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
-
malloc
public static AIMetaData.Buffer malloc(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
-
calloc
public static AIMetaData.Buffer calloc(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
-
-