Package org.lwjgl.assimp
Class AILogStream
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.assimp.AILogStream
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class AILogStream extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Represents a log stream. A log stream receives all log messages and streams them somewhereMember documentation
callback
– callback to be calleduser
– user data to be passed to the callback
Layout
struct aiLogStream {
aiLogStreamCallback
callback; void * user; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AILogStream.Buffer
An array ofAILogStream
structs.
-
Constructor Summary
Constructors Constructor Description AILogStream(java.nio.ByteBuffer container)
Creates aAILogStream
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AILogStreamCallback
callback()
Returns the value of thecallback
field.AILogStream
callback(AILogStreamCallbackI value)
Sets the specified value to thecallback
field.static AILogStream
calloc()
Returns a newAILogStream
instance allocated withmemCalloc
.static AILogStream.Buffer
calloc(int capacity)
Returns a newAILogStream.Buffer
instance allocated withmemCalloc
.static AILogStream
callocStack()
Returns a newAILogStream
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static AILogStream.Buffer
callocStack(int capacity)
Returns a newAILogStream.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static AILogStream.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAILogStream.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AILogStream
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newAILogStream
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AILogStream
create()
Returns a newAILogStream
instance allocated withBufferUtils
.static AILogStream.Buffer
create(int capacity)
Returns a newAILogStream.Buffer
instance allocated withBufferUtils
.static AILogStream
create(long address)
Returns a newAILogStream
instance for the specified memory address.static AILogStream.Buffer
create(long address, int capacity)
Create aAILogStream.Buffer
instance at the specified memory.static AILogStream
createSafe(long address)
static AILogStream.Buffer
createSafe(long address, int capacity)
static AILogStream
malloc()
Returns a newAILogStream
instance allocated withmemAlloc
.static AILogStream.Buffer
malloc(int capacity)
Returns a newAILogStream.Buffer
instance allocated withmemAlloc
.static AILogStream
mallocStack()
Returns a newAILogStream
instance allocated on the thread-localMemoryStack
.static AILogStream.Buffer
mallocStack(int capacity)
Returns a newAILogStream.Buffer
instance allocated on the thread-localMemoryStack
.static AILogStream.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAILogStream.Buffer
instance allocated on the specifiedMemoryStack
.static AILogStream
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newAILogStream
instance allocated on the specifiedMemoryStack
.static AILogStreamCallback
ncallback(long struct)
Unsafe version ofcallback()
.static void
ncallback(long struct, AILogStreamCallbackI value)
Unsafe version ofcallback
.static long
nuser(long struct)
Unsafe version ofuser()
.static void
nuser(long struct, long value)
Unsafe version ofuser
.AILogStream
set(AILogStream src)
Copies the specified struct data to this struct.AILogStream
set(AILogStreamCallbackI callback, long user)
Initializes this struct with the specified values.int
sizeof()
long
user()
Returns the value of theuser
field.AILogStream
user(long value)
Sets the specified value to theuser
field.static void
validate(long struct)
Validates pointer members that should not beNULL
.static void
validate(long array, int count)
Callsvalidate(long)
for each struct contained in the specified struct array.
-
-
-
Constructor Detail
-
AILogStream
public AILogStream(java.nio.ByteBuffer container)
Creates aAILogStream
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
-
callback
public AILogStreamCallback callback()
Returns the value of thecallback
field.
-
user
public long user()
Returns the value of theuser
field.
-
callback
public AILogStream callback(AILogStreamCallbackI value)
Sets the specified value to thecallback
field.
-
user
public AILogStream user(long value)
Sets the specified value to theuser
field.
-
set
public AILogStream set(AILogStreamCallbackI callback, long user)
Initializes this struct with the specified values.
-
set
public AILogStream set(AILogStream src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static AILogStream malloc()
Returns a newAILogStream
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static AILogStream calloc()
Returns a newAILogStream
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static AILogStream create()
Returns a newAILogStream
instance allocated withBufferUtils
.
-
create
public static AILogStream create(long address)
Returns a newAILogStream
instance for the specified memory address.
-
createSafe
@Nullable public static AILogStream createSafe(long address)
-
malloc
public static AILogStream.Buffer malloc(int capacity)
Returns a newAILogStream.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static AILogStream.Buffer calloc(int capacity)
Returns a newAILogStream.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static AILogStream.Buffer create(int capacity)
Returns a newAILogStream.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static AILogStream.Buffer create(long address, int capacity)
Create aAILogStream.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static AILogStream.Buffer createSafe(long address, int capacity)
-
mallocStack
public static AILogStream mallocStack()
Returns a newAILogStream
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static AILogStream callocStack()
Returns a newAILogStream
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static AILogStream mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newAILogStream
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static AILogStream callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newAILogStream
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static AILogStream.Buffer mallocStack(int capacity)
Returns a newAILogStream.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static AILogStream.Buffer callocStack(int capacity)
Returns a newAILogStream.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static AILogStream.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAILogStream.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static AILogStream.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAILogStream.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
ncallback
public static AILogStreamCallback ncallback(long struct)
Unsafe version ofcallback()
.
-
nuser
public static long nuser(long struct)
Unsafe version ofuser()
.
-
ncallback
public static void ncallback(long struct, AILogStreamCallbackI value)
Unsafe version ofcallback
.
-
nuser
public static void nuser(long struct, long value)
Unsafe version ofuser
.
-
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
-
-