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 somewhereLayout
struct aiLogStream {aiLogStreamCallbackcallback(); char *user(int); }
-
-
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 Deprecated Methods Modifier and Type Method Description AILogStreamCallbackcallback()callback to be calledAILogStreamcallback(AILogStreamCallbackI value)Sets the specified value to thecallback()field.static AILogStreamcalloc()Returns a newAILogStreaminstance allocated withmemCalloc.static AILogStream.Buffercalloc(int capacity)Returns a newAILogStream.Bufferinstance allocated withmemCalloc.static AILogStream.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newAILogStream.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AILogStreamcalloc(org.lwjgl.system.MemoryStack stack)Returns a newAILogStreaminstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AILogStreamcallocStack()Deprecated.static AILogStream.BuffercallocStack(int capacity)Deprecated.static AILogStream.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static AILogStreamcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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 AILogStream.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newAILogStream.Bufferinstance allocated on the specifiedMemoryStack.static AILogStreammalloc(org.lwjgl.system.MemoryStack stack)Returns a newAILogStreaminstance allocated on the specifiedMemoryStack.static AILogStreammallocStack()Deprecated.static AILogStream.BuffermallocStack(int capacity)Deprecated.static AILogStream.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static AILogStreammallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static AILogStreamCallbackncallback(long struct)Unsafe version ofcallback().static voidncallback(long struct, AILogStreamCallbackI value)Unsafe version ofcallback.static java.nio.ByteBuffernuser(long struct, int capacity)Unsafe version ofuser.static voidnuser(long struct, java.nio.ByteBuffer value)Unsafe version ofuser.AILogStreamset(AILogStream src)Copies the specified struct data to this struct.AILogStreamset(AILogStreamCallbackI callback, java.nio.ByteBuffer user)Initializes this struct with the specified values.intsizeof()java.nio.ByteBufferuser(int capacity)AILogStreamuser(java.nio.ByteBuffer value)Sets the address of the specifiedByteBufferto theuser(int)field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
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()
callback to be called
-
user
@Nullable public java.nio.ByteBuffer user(int capacity)
- Parameters:
capacity- the number of elements in the returned buffer- Returns:
- user data to be passed to the callback
-
callback
public AILogStream callback(AILogStreamCallbackI value)
Sets the specified value to thecallback()field.
-
user
public AILogStream user(@Nullable java.nio.ByteBuffer value)
Sets the address of the specifiedByteBufferto theuser(int)field.
-
set
public AILogStream set(AILogStreamCallbackI callback, @Nullable java.nio.ByteBuffer 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
@Deprecated public static AILogStream mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static AILogStream callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static AILogStream mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static AILogStream callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static AILogStream.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static AILogStream.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static AILogStream.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 AILogStream.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static AILogStream malloc(org.lwjgl.system.MemoryStack stack)
Returns a newAILogStreaminstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static AILogStream calloc(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
-
malloc
public static AILogStream.Buffer malloc(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
-
calloc
public static AILogStream.Buffer calloc(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
@Nullable public static java.nio.ByteBuffer nuser(long struct, int capacity)Unsafe version ofuser.
-
ncallback
public static void ncallback(long struct, AILogStreamCallbackI value)Unsafe version ofcallback.
-
nuser
public static void nuser(long struct, @Nullable java.nio.ByteBuffer value)Unsafe version ofuser.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-