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 somewhereLayout
struct aiLogStream {
aiLogStreamCallback
callback()
; char *user(int)
; }
-
-
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 Deprecated Methods Modifier and Type Method Description AILogStreamCallback
callback()
callback to be calledAILogStream
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.Buffer
calloc(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
calloc(org.lwjgl.system.MemoryStack stack)
Returns a newAILogStream
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AILogStream
callocStack()
Deprecated.static AILogStream.Buffer
callocStack(int capacity)
Deprecated.static AILogStream.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.static AILogStream
callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.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.Buffer
malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAILogStream.Buffer
instance allocated on the specifiedMemoryStack
.static AILogStream
malloc(org.lwjgl.system.MemoryStack stack)
Returns a newAILogStream
instance allocated on the specifiedMemoryStack
.static AILogStream
mallocStack()
Deprecated.static AILogStream.Buffer
mallocStack(int capacity)
Deprecated.static AILogStream.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.static AILogStream
mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.static AILogStreamCallback
ncallback(long struct)
Unsafe version ofcallback()
.static void
ncallback(long struct, AILogStreamCallbackI value)
Unsafe version ofcallback
.static java.nio.ByteBuffer
nuser(long struct, int capacity)
Unsafe version ofuser
.static void
nuser(long struct, java.nio.ByteBuffer value)
Unsafe version ofuser
.AILogStream
set(AILogStream src)
Copies the specified struct data to this struct.AILogStream
set(AILogStreamCallbackI callback, java.nio.ByteBuffer user)
Initializes this struct with the specified values.int
sizeof()
java.nio.ByteBuffer
user(int capacity)
AILogStream
user(java.nio.ByteBuffer value)
Sets the address of the specifiedByteBuffer
to theuser(int)
field.static void
validate(long struct)
Validates pointer members that should not beNULL
.
-
-
-
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()
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 specifiedByteBuffer
to 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 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
@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 newAILogStream
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
public static AILogStream calloc(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
-
malloc
public static AILogStream.Buffer malloc(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
-
calloc
public static AILogStream.Buffer calloc(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
@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
-
-