Package org.lwjgl.assimp
Class AIPropertyStore
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.assimp.AIPropertyStore
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class AIPropertyStore extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Represents an opaque set of settings to be used during importing.Layout
struct aiPropertyStore { char sentinel; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AIPropertyStore.Buffer
An array ofAIPropertyStore
structs.
-
Constructor Summary
Constructors Constructor Description AIPropertyStore(java.nio.ByteBuffer container)
Creates aAIPropertyStore
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AIPropertyStore
calloc()
Returns a newAIPropertyStore
instance allocated withmemCalloc
.static AIPropertyStore.Buffer
calloc(int capacity)
Returns a newAIPropertyStore.Buffer
instance allocated withmemCalloc
.static AIPropertyStore
callocStack()
Returns a newAIPropertyStore
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static AIPropertyStore.Buffer
callocStack(int capacity)
Returns a newAIPropertyStore.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static AIPropertyStore.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIPropertyStore.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AIPropertyStore
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newAIPropertyStore
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AIPropertyStore
create()
Returns a newAIPropertyStore
instance allocated withBufferUtils
.static AIPropertyStore.Buffer
create(int capacity)
Returns a newAIPropertyStore.Buffer
instance allocated withBufferUtils
.static AIPropertyStore
create(long address)
Returns a newAIPropertyStore
instance for the specified memory address.static AIPropertyStore.Buffer
create(long address, int capacity)
Create aAIPropertyStore.Buffer
instance at the specified memory.static AIPropertyStore
createSafe(long address)
static AIPropertyStore.Buffer
createSafe(long address, int capacity)
static AIPropertyStore
malloc()
Returns a newAIPropertyStore
instance allocated withmemAlloc
.static AIPropertyStore.Buffer
malloc(int capacity)
Returns a newAIPropertyStore.Buffer
instance allocated withmemAlloc
.static AIPropertyStore
mallocStack()
Returns a newAIPropertyStore
instance allocated on the thread-localMemoryStack
.static AIPropertyStore.Buffer
mallocStack(int capacity)
Returns a newAIPropertyStore.Buffer
instance allocated on the thread-localMemoryStack
.static AIPropertyStore.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIPropertyStore.Buffer
instance allocated on the specifiedMemoryStack
.static AIPropertyStore
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newAIPropertyStore
instance allocated on the specifiedMemoryStack
.static byte
nsentinel(long struct)
Unsafe version ofsentinel()
.static void
nsentinel(long struct, byte value)
Unsafe version ofsentinel
.byte
sentinel()
Returns the value of thesentinel
field.AIPropertyStore
sentinel(byte value)
Sets the specified value to thesentinel
field.AIPropertyStore
set(AIPropertyStore src)
Copies the specified struct data to this struct.int
sizeof()
-
-
-
Constructor Detail
-
AIPropertyStore
public AIPropertyStore(java.nio.ByteBuffer container)
Creates aAIPropertyStore
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
-
sentinel
public byte sentinel()
Returns the value of thesentinel
field.
-
sentinel
public AIPropertyStore sentinel(byte value)
Sets the specified value to thesentinel
field.
-
set
public AIPropertyStore set(AIPropertyStore src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static AIPropertyStore malloc()
Returns a newAIPropertyStore
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static AIPropertyStore calloc()
Returns a newAIPropertyStore
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static AIPropertyStore create()
Returns a newAIPropertyStore
instance allocated withBufferUtils
.
-
create
public static AIPropertyStore create(long address)
Returns a newAIPropertyStore
instance for the specified memory address.
-
createSafe
@Nullable public static AIPropertyStore createSafe(long address)
-
malloc
public static AIPropertyStore.Buffer malloc(int capacity)
Returns a newAIPropertyStore.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static AIPropertyStore.Buffer calloc(int capacity)
Returns a newAIPropertyStore.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static AIPropertyStore.Buffer create(int capacity)
Returns a newAIPropertyStore.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static AIPropertyStore.Buffer create(long address, int capacity)
Create aAIPropertyStore.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static AIPropertyStore.Buffer createSafe(long address, int capacity)
-
mallocStack
public static AIPropertyStore mallocStack()
Returns a newAIPropertyStore
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static AIPropertyStore callocStack()
Returns a newAIPropertyStore
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static AIPropertyStore mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newAIPropertyStore
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static AIPropertyStore callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newAIPropertyStore
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static AIPropertyStore.Buffer mallocStack(int capacity)
Returns a newAIPropertyStore.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static AIPropertyStore.Buffer callocStack(int capacity)
Returns a newAIPropertyStore.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static AIPropertyStore.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIPropertyStore.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static AIPropertyStore.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIPropertyStore.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nsentinel
public static byte nsentinel(long struct)
Unsafe version ofsentinel()
.
-
nsentinel
public static void nsentinel(long struct, byte value)
Unsafe version ofsentinel
.
-
-