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 and Description static class
AIMetaDataEntry.Buffer
An array ofAIMetaDataEntry
structs.
-
Field Summary
Fields Modifier and Type Field and Description static int
SIZEOF
The struct size in bytes.
-
Constructor Summary
Constructors Constructor and 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 Modifier and Type Method and 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
callocStack()
Returns a newAIMetaDataEntry
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static AIMetaDataEntry.Buffer
callocStack(int capacity)
Returns a newAIMetaDataEntry.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static AIMetaDataEntry.Buffer
callocStack(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
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newAIMetaDataEntry
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.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
mallocStack()
Returns a newAIMetaDataEntry
instance allocated on the thread-localMemoryStack
.static AIMetaDataEntry.Buffer
mallocStack(int capacity)
Returns a newAIMetaDataEntry.Buffer
instance allocated on the thread-localMemoryStack
.static AIMetaDataEntry.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIMetaDataEntry.Buffer
instance allocated on the specifiedMemoryStack
.static AIMetaDataEntry
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newAIMetaDataEntry
instance allocated on the specifiedMemoryStack
.AIMetaDataEntry
mData(java.nio.ByteBuffer value)
Sets the address of the specifiedByteBuffer
to themData
field.java.nio.ByteBuffer
mData(int capacity)
Returns aByteBuffer
view of the data pointed to by themData
field.int
mType()
Returns the value of themType
field.AIMetaDataEntry
mType(int value)
Sets the specified value to themType
field.AIMetaDataEntry
set(AIMetaDataEntry src)
Copies the specified struct data to this struct.AIMetaDataEntry
set(int mType, java.nio.ByteBuffer mData)
Initializes this struct with the specified values.int
sizeof()
static void
validate(long struct)
Validates pointer members that should not beNULL
.static void
validate(long array, int count)
CallsAIMetaDataEntry.validate(long)
for each struct contained in the specified struct array.
-
-
-
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 themType
field.
-
mData
public java.nio.ByteBuffer mData(int capacity)
Returns aByteBuffer
view of the data pointed to by themData
field.- Parameters:
capacity
- the number of elements in the returned buffer
-
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
public static AIMetaDataEntry mallocStack()
Returns a newAIMetaDataEntry
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static AIMetaDataEntry callocStack()
Returns a newAIMetaDataEntry
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static AIMetaDataEntry mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newAIMetaDataEntry
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static AIMetaDataEntry callocStack(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
-
mallocStack
public static AIMetaDataEntry.Buffer mallocStack(int capacity)
Returns a newAIMetaDataEntry.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static AIMetaDataEntry.Buffer callocStack(int capacity)
Returns a newAIMetaDataEntry.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
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)
CallsAIMetaDataEntry.validate(long)
for each struct contained in the specified struct array.- Parameters:
array
- the struct array to validatecount
- the number of structs inarray
-
-