Package org.lwjgl.assimp
Class AIMetaData
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct aiMetadata {
unsigned int mNumProperties;
{@link AIString struct aiString} * mKeys;
{@link AIMetaDataEntry struct aiMetadataEntry} * mValues;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The 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 aAIMetaData
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic AIMetaData
calloc()
Returns a newAIMetaData
instance allocated withmemCalloc
.static AIMetaData.Buffer
calloc
(int capacity) Returns a newAIMetaData.Buffer
instance allocated withmemCalloc
.static AIMetaData.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newAIMetaData.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AIMetaData
calloc
(MemoryStack stack) Returns a newAIMetaData
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AIMetaData
Deprecated.static AIMetaData.Buffer
callocStack
(int capacity) Deprecated.static AIMetaData.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static AIMetaData
callocStack
(MemoryStack stack) Deprecated.static AIMetaData
create()
Returns a newAIMetaData
instance allocated withBufferUtils
.static AIMetaData.Buffer
create
(int capacity) Returns a newAIMetaData.Buffer
instance allocated withBufferUtils
.static AIMetaData
create
(long address) Returns a newAIMetaData
instance for the specified memory address.static AIMetaData.Buffer
create
(long address, int capacity) Create aAIMetaData.Buffer
instance at the specified memory.static @Nullable AIMetaData
createSafe
(long address) static @Nullable AIMetaData.Buffer
createSafe
(long address, int capacity) static AIMetaData
malloc()
Returns a newAIMetaData
instance allocated withmemAlloc
.static AIMetaData.Buffer
malloc
(int capacity) Returns a newAIMetaData.Buffer
instance allocated withmemAlloc
.static AIMetaData.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newAIMetaData.Buffer
instance allocated on the specifiedMemoryStack
.static AIMetaData
malloc
(MemoryStack stack) Returns a newAIMetaData
instance allocated on the specifiedMemoryStack
.static AIMetaData
Deprecated.static AIMetaData.Buffer
mallocStack
(int capacity) Deprecated.static AIMetaData.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static AIMetaData
mallocStack
(MemoryStack stack) Deprecated.mKeys()
mKeys
(AIString.Buffer value) Sets the address of the specifiedAIString.Buffer
to themKeys
field.int
mNumProperties
(int value) Sets the specified value to themNumProperties
field.mValues()
mValues
(AIMetaDataEntry.Buffer value) Sets the address of the specifiedAIMetaDataEntry.Buffer
to themValues
field.static AIString.Buffer
nmKeys
(long struct) Unsafe version ofmKeys()
.static void
nmKeys
(long struct, AIString.Buffer value) Unsafe version ofmKeys
.static int
nmNumProperties
(long struct) Unsafe version ofmNumProperties()
.static void
nmNumProperties
(long struct, int value) Sets the specified value to themNumProperties
field of the specifiedstruct
.static AIMetaDataEntry.Buffer
nmValues
(long struct) Unsafe version ofmValues()
.static void
nmValues
(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.int
sizeof()
Returnssizeof(struct)
.static void
validate
(long struct) Validates pointer members that should not beNULL
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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 aAIMetaData
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<AIMetaData>
-
mNumProperties
public int mNumProperties()- Returns:
- the value of the
mNumProperties
field.
-
mKeys
- Returns:
- a
AIString.Buffer
view of the struct array pointed to by themKeys
field.
-
mValues
- Returns:
- a
AIMetaDataEntry.Buffer
view of the struct array pointed to by themValues
field.
-
mNumProperties
Sets the specified value to themNumProperties
field. -
mKeys
Sets the address of the specifiedAIString.Buffer
to themKeys
field. -
mValues
Sets the address of the specifiedAIMetaDataEntry.Buffer
to themValues
field. -
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 newAIMetaData
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newAIMetaData
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newAIMetaData
instance allocated withBufferUtils
. -
create
Returns a newAIMetaData
instance for the specified memory address. -
createSafe
-
malloc
Returns a newAIMetaData.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newAIMetaData.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newAIMetaData.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aAIMetaData.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newAIMetaData
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newAIMetaData
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newAIMetaData.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newAIMetaData.Buffer
instance allocated on the specifiedMemoryStack
and 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 themNumProperties
field 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
-