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.NativeResource
Layout
struct aiMetadataEntry { aiMetadataType mType; void * mData; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AIMetaDataEntry.Buffer
An array ofAIMetaDataEntry
structs.
-
Constructor Summary
Constructors Constructor Description AIMetaDataEntry(java.nio.ByteBuffer container)
Creates aAIMetaDataEntry
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 AIMetaDataEntry
calloc()
Returns a newAIMetaDataEntry
instance allocated withmemCalloc
.static AIMetaDataEntry.Buffer
calloc(int capacity)
Returns a newAIMetaDataEntry.Buffer
instance allocated withmemCalloc
.static AIMetaDataEntry.Buffer
calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIMetaDataEntry.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AIMetaDataEntry
calloc(org.lwjgl.system.MemoryStack stack)
Returns a newAIMetaDataEntry
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AIMetaDataEntry
callocStack()
Deprecated.static AIMetaDataEntry.Buffer
callocStack(int capacity)
Deprecated.static AIMetaDataEntry.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.static AIMetaDataEntry
callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.static AIMetaDataEntry
create()
Returns a newAIMetaDataEntry
instance allocated withBufferUtils
.static AIMetaDataEntry.Buffer
create(int capacity)
Returns a newAIMetaDataEntry.Buffer
instance allocated withBufferUtils
.static AIMetaDataEntry
create(long address)
Returns a newAIMetaDataEntry
instance for the specified memory address.static AIMetaDataEntry.Buffer
create(long address, int capacity)
Create aAIMetaDataEntry.Buffer
instance at the specified memory.static AIMetaDataEntry
createSafe(long address)
static AIMetaDataEntry.Buffer
createSafe(long address, int capacity)
static AIMetaDataEntry
malloc()
Returns a newAIMetaDataEntry
instance allocated withmemAlloc
.static AIMetaDataEntry.Buffer
malloc(int capacity)
Returns a newAIMetaDataEntry.Buffer
instance allocated withmemAlloc
.static AIMetaDataEntry.Buffer
malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIMetaDataEntry.Buffer
instance allocated on the specifiedMemoryStack
.static AIMetaDataEntry
malloc(org.lwjgl.system.MemoryStack stack)
Returns a newAIMetaDataEntry
instance allocated on the specifiedMemoryStack
.static AIMetaDataEntry
mallocStack()
Deprecated.static AIMetaDataEntry.Buffer
mallocStack(int capacity)
Deprecated.static AIMetaDataEntry.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.static AIMetaDataEntry
mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.java.nio.ByteBuffer
mData(int capacity)
AIMetaDataEntry
mData(java.nio.ByteBuffer value)
Sets the address of the specifiedByteBuffer
to themData
field.int
mType()
AIMetaDataEntry
mType(int value)
Sets the specified value to themType
field.static java.nio.ByteBuffer
nmData(long struct, int capacity)
Unsafe version ofmData
.static void
nmData(long struct, java.nio.ByteBuffer value)
Unsafe version ofmData
.static int
nmType(long struct)
Unsafe version ofmType()
.static void
nmType(long struct, int value)
Unsafe version ofmType
.AIMetaDataEntry
set(int mType, java.nio.ByteBuffer mData)
Initializes this struct with the specified values.AIMetaDataEntry
set(AIMetaDataEntry 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
-
AIMetaDataEntry
public AIMetaDataEntry(java.nio.ByteBuffer container)
Creates aAIMetaDataEntry
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
-
mType
public int mType()
- Returns:
- the value of the
mType
field.
-
mData
public java.nio.ByteBuffer mData(int capacity)
- Parameters:
capacity
- the number of elements in the returned buffer- Returns:
- a
ByteBuffer
view of the data pointed to by themData
field.
-
mType
public AIMetaDataEntry mType(int value)
Sets the specified value to themType
field.
-
mData
public AIMetaDataEntry mData(java.nio.ByteBuffer value)
Sets the address of the specifiedByteBuffer
to themData
field.
-
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 newAIMetaDataEntry
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static AIMetaDataEntry calloc()
Returns a newAIMetaDataEntry
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static AIMetaDataEntry create()
Returns a newAIMetaDataEntry
instance allocated withBufferUtils
.
-
create
public static AIMetaDataEntry create(long address)
Returns a newAIMetaDataEntry
instance for the specified memory address.
-
createSafe
@Nullable public static AIMetaDataEntry createSafe(long address)
-
malloc
public static AIMetaDataEntry.Buffer malloc(int capacity)
Returns a newAIMetaDataEntry.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static AIMetaDataEntry.Buffer calloc(int capacity)
Returns a newAIMetaDataEntry.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static AIMetaDataEntry.Buffer create(int capacity)
Returns a newAIMetaDataEntry.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static AIMetaDataEntry.Buffer create(long address, int capacity)
Create aAIMetaDataEntry.Buffer
instance 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 newAIMetaDataEntry
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
public static AIMetaDataEntry calloc(org.lwjgl.system.MemoryStack stack)
Returns a newAIMetaDataEntry
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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
-
-