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.NativeResourceRepresents 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 {aiLogStreamCallbackcallback; void * user; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAILogStream.BufferAn array ofAILogStreamstructs.
-
Constructor Summary
Constructors Constructor Description AILogStream(java.nio.ByteBuffer container)Creates aAILogStreaminstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AILogStreamCallbackcallback()Returns the value of thecallbackfield.AILogStreamcallback(AILogStreamCallbackI value)Sets the specified value to thecallbackfield.static AILogStreamcalloc()Returns a newAILogStreaminstance allocated withmemCalloc.static AILogStream.Buffercalloc(int capacity)Returns a newAILogStream.Bufferinstance allocated withmemCalloc.static AILogStreamcallocStack()Returns a newAILogStreaminstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static AILogStream.BuffercallocStack(int capacity)Returns a newAILogStream.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static AILogStream.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newAILogStream.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AILogStreamcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newAILogStreaminstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AILogStreamcreate()Returns a newAILogStreaminstance allocated withBufferUtils.static AILogStream.Buffercreate(int capacity)Returns a newAILogStream.Bufferinstance allocated withBufferUtils.static AILogStreamcreate(long address)Returns a newAILogStreaminstance for the specified memory address.static AILogStream.Buffercreate(long address, int capacity)Create aAILogStream.Bufferinstance at the specified memory.static AILogStreamcreateSafe(long address)static AILogStream.BuffercreateSafe(long address, int capacity)static AILogStreammalloc()Returns a newAILogStreaminstance allocated withmemAlloc.static AILogStream.Buffermalloc(int capacity)Returns a newAILogStream.Bufferinstance allocated withmemAlloc.static AILogStreammallocStack()Returns a newAILogStreaminstance allocated on the thread-localMemoryStack.static AILogStream.BuffermallocStack(int capacity)Returns a newAILogStream.Bufferinstance allocated on the thread-localMemoryStack.static AILogStream.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newAILogStream.Bufferinstance allocated on the specifiedMemoryStack.static AILogStreammallocStack(org.lwjgl.system.MemoryStack stack)Returns a newAILogStreaminstance allocated on the specifiedMemoryStack.static AILogStreamCallbackncallback(long struct)Unsafe version ofcallback().static voidncallback(long struct, AILogStreamCallbackI value)Unsafe version ofcallback.static longnuser(long struct)Unsafe version ofuser().static voidnuser(long struct, long value)Unsafe version ofuser.AILogStreamset(AILogStream src)Copies the specified struct data to this struct.AILogStreamset(AILogStreamCallbackI callback, long user)Initializes this struct with the specified values.intsizeof()longuser()Returns the value of theuserfield.AILogStreamuser(long value)Sets the specified value to theuserfield.static voidvalidate(long struct)Validates pointer members that should not beNULL.static voidvalidate(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 aAILogStreaminstance 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
-
callback
public AILogStreamCallback callback()
Returns the value of thecallbackfield.
-
user
public long user()
Returns the value of theuserfield.
-
callback
public AILogStream callback(AILogStreamCallbackI value)
Sets the specified value to thecallbackfield.
-
user
public AILogStream user(long value)
Sets the specified value to theuserfield.
-
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 newAILogStreaminstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static AILogStream calloc()
Returns a newAILogStreaminstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static AILogStream create()
Returns a newAILogStreaminstance allocated withBufferUtils.
-
create
public static AILogStream create(long address)
Returns a newAILogStreaminstance for the specified memory address.
-
createSafe
@Nullable public static AILogStream createSafe(long address)
-
malloc
public static AILogStream.Buffer malloc(int capacity)
Returns a newAILogStream.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static AILogStream.Buffer calloc(int capacity)
Returns a newAILogStream.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static AILogStream.Buffer create(int capacity)
Returns a newAILogStream.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static AILogStream.Buffer create(long address, int capacity)
Create aAILogStream.Bufferinstance 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 newAILogStreaminstance allocated on the thread-localMemoryStack.
-
callocStack
public static AILogStream callocStack()
Returns a newAILogStreaminstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static AILogStream mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newAILogStreaminstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static AILogStream callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newAILogStreaminstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static AILogStream.Buffer callocStack(int capacity)
Returns a newAILogStream.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand 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
-
-