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 Deprecated 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 AIMetaDataEntry.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newAIMetaDataEntry.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIMetaDataEntrycalloc(org.lwjgl.system.MemoryStack stack)Returns a newAIMetaDataEntryinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIMetaDataEntrycallocStack()Deprecated.static AIMetaDataEntry.BuffercallocStack(int capacity)Deprecated.static AIMetaDataEntry.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static AIMetaDataEntrycallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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 AIMetaDataEntry.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newAIMetaDataEntry.Bufferinstance allocated on the specifiedMemoryStack.static AIMetaDataEntrymalloc(org.lwjgl.system.MemoryStack stack)Returns a newAIMetaDataEntryinstance allocated on the specifiedMemoryStack.static AIMetaDataEntrymallocStack()Deprecated.static AIMetaDataEntry.BuffermallocStack(int capacity)Deprecated.static AIMetaDataEntry.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static AIMetaDataEntrymallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.java.nio.ByteBuffermData(int capacity)AIMetaDataEntrymData(java.nio.ByteBuffer value)Sets the address of the specifiedByteBufferto themDatafield.intmType()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.
-
-
-
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 the
mTypefield.
-
mData
public java.nio.ByteBuffer mData(int capacity)
- Parameters:
capacity- the number of elements in the returned buffer- Returns:
- a
ByteBufferview of the data pointed to by themDatafield.
-
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
@Deprecated public static AIMetaDataEntry mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static AIMetaDataEntry callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static AIMetaDataEntry mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static AIMetaDataEntry callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static AIMetaDataEntry.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static AIMetaDataEntry.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static AIMetaDataEntry.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 AIMetaDataEntry.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static AIMetaDataEntry malloc(org.lwjgl.system.MemoryStack stack)
Returns a newAIMetaDataEntryinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static AIMetaDataEntry calloc(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
-
malloc
public static AIMetaDataEntry.Buffer malloc(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
-
calloc
public static AIMetaDataEntry.Buffer calloc(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
-
-