Package org.lwjgl.assimp
Class AIMetaData
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct aiMetadata {
unsigned int mNumProperties;
struct aiString * mKeys;
struct aiMetadataEntry * mValues;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionAIMetaData(ByteBuffer container) Creates aAIMetaDatainstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic AIMetaDatacalloc()Returns a newAIMetaDatainstance allocated withmemCalloc.static AIMetaData.Buffercalloc(int capacity) Returns a newAIMetaData.Bufferinstance allocated withmemCalloc.static AIMetaData.Buffercalloc(int capacity, MemoryStack stack) Returns a newAIMetaData.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIMetaDatacalloc(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 @Nullable AIMetaDatacreateSafe(long address) static @Nullable 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, MemoryStack stack) Returns a newAIMetaData.Bufferinstance allocated on the specifiedMemoryStack.static AIMetaDatamalloc(MemoryStack stack) Returns a newAIMetaDatainstance allocated on the specifiedMemoryStack.mKeys()mKeys(AIString.Buffer value) Sets the address of the specifiedAIString.Bufferto themKeysfield.intmNumProperties(int value) Sets the specified value to themNumPropertiesfield.mValues()mValues(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.set(int mNumProperties, AIString.Buffer mKeys, AIMetaDataEntry.Buffer mValues) Initializes this struct with the specified values.set(AIMetaData src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).static voidvalidate(long struct) Validates pointer members that should not beNULL.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
MNUMPROPERTIES
public static final int MNUMPROPERTIESThe struct member offsets. -
MKEYS
public static final int MKEYSThe struct member offsets. -
MVALUES
public static final int MVALUESThe struct member offsets.
-
-
Constructor Details
-
AIMetaData
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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<AIMetaData>
-
mNumProperties
public int mNumProperties()- Returns:
- the value of the
mNumPropertiesfield.
-
mKeys
- Returns:
- a
AIString.Bufferview of the struct array pointed to by themKeysfield.
-
mValues
- Returns:
- a
AIMetaDataEntry.Bufferview of the struct array pointed to by themValuesfield.
-
mNumProperties
Sets the specified value to themNumPropertiesfield. -
mKeys
Sets the address of the specifiedAIString.Bufferto themKeysfield. -
mValues
Sets the address of the specifiedAIMetaDataEntry.Bufferto themValuesfield. -
set
Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newAIMetaDatainstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newAIMetaDatainstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newAIMetaDatainstance allocated withBufferUtils. -
create
Returns a newAIMetaDatainstance for the specified memory address. -
createSafe
-
malloc
Returns a newAIMetaData.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newAIMetaData.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newAIMetaData.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aAIMetaData.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newAIMetaDatainstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newAIMetaDatainstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newAIMetaData.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newAIMetaData.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nmNumProperties
public static int nmNumProperties(long struct) Unsafe version ofmNumProperties(). -
nmKeys
Unsafe version ofmKeys(). -
nmValues
Unsafe version ofmValues(). -
nmNumProperties
public static void nmNumProperties(long struct, int value) Sets the specified value to themNumPropertiesfield of the specifiedstruct. -
nmKeys
Unsafe version ofmKeys. -
nmValues
Unsafe version ofmValues. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-