Package org.lwjgl.assimp
Class AIMetaDataEntry
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.assimp.AIMetaDataEntry
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class AIMetaDataEntry extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct aiMetadataEntry { aiMetadataType mType; void * mData; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAIMetaDataEntry.BufferAn array ofAIMetaDataEntrystructs.
-
Constructor Summary
Constructors Constructor Description AIMetaDataEntry(java.nio.ByteBuffer container)Creates aAIMetaDataEntryinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AIMetaDataEntrycalloc()Returns a newAIMetaDataEntryinstance allocated withmemCalloc.static AIMetaDataEntry.Buffercalloc(int capacity)Returns a newAIMetaDataEntry.Bufferinstance allocated withmemCalloc.static AIMetaDataEntrycallocStack()Returns a newAIMetaDataEntryinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static AIMetaDataEntry.BuffercallocStack(int capacity)Returns a newAIMetaDataEntry.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static AIMetaDataEntry.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newAIMetaDataEntry.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIMetaDataEntrycallocStack(org.lwjgl.system.MemoryStack stack)Returns a newAIMetaDataEntryinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIMetaDataEntrycreate()Returns a newAIMetaDataEntryinstance allocated withBufferUtils.static AIMetaDataEntry.Buffercreate(int capacity)Returns a newAIMetaDataEntry.Bufferinstance allocated withBufferUtils.static AIMetaDataEntrycreate(long address)Returns a newAIMetaDataEntryinstance for the specified memory address.static AIMetaDataEntry.Buffercreate(long address, int capacity)Create aAIMetaDataEntry.Bufferinstance at the specified memory.static AIMetaDataEntrycreateSafe(long address)static AIMetaDataEntry.BuffercreateSafe(long address, int capacity)static AIMetaDataEntrymalloc()Returns a newAIMetaDataEntryinstance allocated withmemAlloc.static AIMetaDataEntry.Buffermalloc(int capacity)Returns a newAIMetaDataEntry.Bufferinstance allocated withmemAlloc.static AIMetaDataEntrymallocStack()Returns a newAIMetaDataEntryinstance allocated on the thread-localMemoryStack.static AIMetaDataEntry.BuffermallocStack(int capacity)Returns a newAIMetaDataEntry.Bufferinstance allocated on the thread-localMemoryStack.static AIMetaDataEntry.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newAIMetaDataEntry.Bufferinstance allocated on the specifiedMemoryStack.static AIMetaDataEntrymallocStack(org.lwjgl.system.MemoryStack stack)Returns a newAIMetaDataEntryinstance allocated on the specifiedMemoryStack.java.nio.ByteBuffermData(int capacity)Returns aByteBufferview of the data pointed to by themDatafield.AIMetaDataEntrymData(java.nio.ByteBuffer value)Sets the address of the specifiedByteBufferto themDatafield.intmType()Returns the value of themTypefield.AIMetaDataEntrymType(int value)Sets the specified value to themTypefield.static java.nio.ByteBuffernmData(long struct, int capacity)Unsafe version ofmData.static voidnmData(long struct, java.nio.ByteBuffer value)Unsafe version ofmData.static intnmType(long struct)Unsafe version ofmType().static voidnmType(long struct, int value)Unsafe version ofmType.AIMetaDataEntryset(int mType, java.nio.ByteBuffer mData)Initializes this struct with the specified values.AIMetaDataEntryset(AIMetaDataEntry 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
-
AIMetaDataEntry
public AIMetaDataEntry(java.nio.ByteBuffer container)
Creates aAIMetaDataEntryinstance 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
-
mType
public int mType()
Returns the value of themTypefield.
-
mData
public java.nio.ByteBuffer mData(int capacity)
Returns aByteBufferview of the data pointed to by themDatafield.- Parameters:
capacity- the number of elements in the returned buffer
-
mType
public AIMetaDataEntry mType(int value)
Sets the specified value to themTypefield.
-
mData
public AIMetaDataEntry mData(java.nio.ByteBuffer value)
Sets the address of the specifiedByteBufferto themDatafield.
-
set
public AIMetaDataEntry set(int mType, java.nio.ByteBuffer mData)
Initializes this struct with the specified values.
-
set
public AIMetaDataEntry set(AIMetaDataEntry src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static AIMetaDataEntry malloc()
Returns a newAIMetaDataEntryinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static AIMetaDataEntry calloc()
Returns a newAIMetaDataEntryinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static AIMetaDataEntry create()
Returns a newAIMetaDataEntryinstance allocated withBufferUtils.
-
create
public static AIMetaDataEntry create(long address)
Returns a newAIMetaDataEntryinstance for the specified memory address.
-
createSafe
@Nullable public static AIMetaDataEntry createSafe(long address)
-
malloc
public static AIMetaDataEntry.Buffer malloc(int capacity)
Returns a newAIMetaDataEntry.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static AIMetaDataEntry.Buffer calloc(int capacity)
Returns a newAIMetaDataEntry.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static AIMetaDataEntry.Buffer create(int capacity)
Returns a newAIMetaDataEntry.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static AIMetaDataEntry.Buffer create(long address, int capacity)
Create aAIMetaDataEntry.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static AIMetaDataEntry.Buffer createSafe(long address, int capacity)
-
mallocStack
public static AIMetaDataEntry mallocStack()
Returns a newAIMetaDataEntryinstance allocated on the thread-localMemoryStack.
-
callocStack
public static AIMetaDataEntry callocStack()
Returns a newAIMetaDataEntryinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static AIMetaDataEntry mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newAIMetaDataEntryinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static AIMetaDataEntry callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newAIMetaDataEntryinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static AIMetaDataEntry.Buffer mallocStack(int capacity)
Returns a newAIMetaDataEntry.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static AIMetaDataEntry.Buffer callocStack(int capacity)
Returns a newAIMetaDataEntry.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static AIMetaDataEntry.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIMetaDataEntry.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static AIMetaDataEntry.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIMetaDataEntry.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nmType
public static int nmType(long struct)
Unsafe version ofmType().
-
nmData
public static java.nio.ByteBuffer nmData(long struct, int capacity)Unsafe version ofmData.
-
nmType
public static void nmType(long struct, int value)Unsafe version ofmType.
-
nmData
public static void nmData(long struct, java.nio.ByteBuffer value)Unsafe version ofmData.
-
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
-
-