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.NativeResource
Layout
struct aiMetadata { unsigned int
mNumProperties()
;struct aiString
*mKeys()
;struct aiMetadataEntry
*mValues()
; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AIMetaData.Buffer
An array ofAIMetaData
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
MKEYS
MNUMPROPERTIES
MVALUESThe struct member offsets.static int
SIZEOF
The struct size in bytes.
-
Constructor Summary
Constructors Constructor Description AIMetaData(java.nio.ByteBuffer container)
Creates aAIMetaData
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static 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, org.lwjgl.system.MemoryStack stack)
Returns a newAIMetaData.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AIMetaData
calloc(org.lwjgl.system.MemoryStack stack)
Returns a newAIMetaData
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AIMetaData
callocStack()
Deprecated.static AIMetaData.Buffer
callocStack(int capacity)
Deprecated.static AIMetaData.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.static AIMetaData
callocStack(org.lwjgl.system.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 AIMetaData
createSafe(long address)
static 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, org.lwjgl.system.MemoryStack stack)
Returns a newAIMetaData.Buffer
instance allocated on the specifiedMemoryStack
.static AIMetaData
malloc(org.lwjgl.system.MemoryStack stack)
Returns a newAIMetaData
instance allocated on the specifiedMemoryStack
.static AIMetaData
mallocStack()
Deprecated.static AIMetaData.Buffer
mallocStack(int capacity)
Deprecated.static AIMetaData.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.static AIMetaData
mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.AIString.Buffer
mKeys()
Arrays of keys, may not beNULL
.AIMetaData
mKeys(AIString.Buffer value)
Sets the address of the specifiedAIString.Buffer
to themKeys()
field.int
mNumProperties()
Length of themKeys
andmValues
arrays, respectivelyAIMetaData
mNumProperties(int value)
Sets the specified value to themNumProperties()
field.AIMetaDataEntry.Buffer
mValues()
Arrays of values, may not beNULL
.AIMetaData
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
.AIMetaData
set(int mNumProperties, AIString.Buffer mKeys, AIMetaDataEntry.Buffer mValues)
Initializes this struct with the specified values.AIMetaData
set(AIMetaData src)
Copies the specified struct data to this struct.int
sizeof()
static void
validate(long struct)
Validates pointer members that should not beNULL
.
-
-
-
Constructor Detail
-
AIMetaData
public AIMetaData(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
mNumProperties
public int mNumProperties()
Length of themKeys
andmValues
arrays, respectively
-
mKeys
public AIString.Buffer mKeys()
Arrays of keys, may not beNULL
. Entries in this array may not beNULL
as well.
-
mValues
public AIMetaDataEntry.Buffer mValues()
Arrays of values, may not beNULL
. Entries in this array may beNULL
if 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.Buffer
to themKeys()
field.
-
mValues
public AIMetaData mValues(AIMetaDataEntry.Buffer value)
Sets the address of the specifiedAIMetaDataEntry.Buffer
to 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 newAIMetaData
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static AIMetaData calloc()
Returns a newAIMetaData
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static AIMetaData create()
Returns a newAIMetaData
instance allocated withBufferUtils
.
-
create
public static AIMetaData create(long address)
Returns a newAIMetaData
instance for the specified memory address.
-
createSafe
@Nullable public static AIMetaData createSafe(long address)
-
malloc
public static AIMetaData.Buffer malloc(int capacity)
Returns a newAIMetaData.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static AIMetaData.Buffer calloc(int capacity)
Returns a newAIMetaData.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static AIMetaData.Buffer create(int capacity)
Returns a newAIMetaData.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static AIMetaData.Buffer create(long address, int capacity)
Create aAIMetaData.Buffer
instance 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 newAIMetaData
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
public static AIMetaData calloc(org.lwjgl.system.MemoryStack stack)
Returns a newAIMetaData
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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 themNumProperties
field 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
-
-