public class AILogStream
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
callback – callback to be calleduser – user data to be passed to the callback
struct aiLogStream {
aiLogStreamCallback callback;
void * user;
}| Modifier and Type | Class and Description |
|---|---|
static class |
AILogStream.Buffer
An array of
AILogStream structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
CALLBACK
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
USER
The struct member offsets.
|
| Constructor and Description |
|---|
AILogStream(java.nio.ByteBuffer container)
Creates a
AILogStream instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
AILogStreamCallback |
callback()
Returns the value of the
callback field. |
AILogStream |
callback(AILogStreamCallbackI value)
Sets the specified value to the
callback field. |
static AILogStream |
calloc()
Returns a new
AILogStream instance allocated with memCalloc. |
static AILogStream.Buffer |
calloc(int capacity)
Returns a new
AILogStream.Buffer instance allocated with memCalloc. |
static AILogStream |
callocStack()
Returns a new
AILogStream instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static AILogStream.Buffer |
callocStack(int capacity)
Returns a new
AILogStream.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static AILogStream.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
AILogStream.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static AILogStream |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
AILogStream instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static AILogStream |
create()
Returns a new
AILogStream instance allocated with BufferUtils. |
static AILogStream.Buffer |
create(int capacity)
Returns a new
AILogStream.Buffer instance allocated with BufferUtils. |
static AILogStream |
create(long address)
Returns a new
AILogStream instance for the specified memory address. |
static AILogStream.Buffer |
create(long address,
int capacity)
Create a
AILogStream.Buffer instance at the specified memory. |
static AILogStream |
createSafe(long address)
|
static AILogStream.Buffer |
createSafe(long address,
int capacity)
|
static AILogStream |
malloc()
Returns a new
AILogStream instance allocated with memAlloc. |
static AILogStream.Buffer |
malloc(int capacity)
Returns a new
AILogStream.Buffer instance allocated with memAlloc. |
static AILogStream |
mallocStack()
Returns a new
AILogStream instance allocated on the thread-local MemoryStack. |
static AILogStream.Buffer |
mallocStack(int capacity)
Returns a new
AILogStream.Buffer instance allocated on the thread-local MemoryStack. |
static AILogStream.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
AILogStream.Buffer instance allocated on the specified MemoryStack. |
static AILogStream |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
AILogStream instance allocated on the specified MemoryStack. |
static AILogStreamCallback |
ncallback(long struct)
Unsafe version of
callback(). |
static void |
ncallback(long struct,
AILogStreamCallbackI value)
Unsafe version of
callback. |
static long |
nuser(long struct)
Unsafe version of
user(). |
static void |
nuser(long struct,
long value)
Unsafe version of
user. |
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 the
user field. |
AILogStream |
user(long value)
Sets the specified value to the
user field. |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int CALLBACK
public static final int USER
public AILogStream(java.nio.ByteBuffer container)
AILogStream instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic AILogStreamCallback callback()
callback field.public long user()
user field.public AILogStream callback(AILogStreamCallbackI value)
callback field.public AILogStream user(long value)
user field.public AILogStream set(AILogStreamCallbackI callback, long user)
public AILogStream set(AILogStream src)
src - the source structpublic static AILogStream malloc()
AILogStream instance allocated with memAlloc. The instance must be explicitly freed.public static AILogStream calloc()
AILogStream instance allocated with memCalloc. The instance must be explicitly freed.public static AILogStream create()
AILogStream instance allocated with BufferUtils.public static AILogStream create(long address)
AILogStream instance for the specified memory address.@Nullable public static AILogStream createSafe(long address)
public static AILogStream.Buffer malloc(int capacity)
AILogStream.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static AILogStream.Buffer calloc(int capacity)
AILogStream.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static AILogStream.Buffer create(int capacity)
AILogStream.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static AILogStream.Buffer create(long address, int capacity)
AILogStream.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static AILogStream.Buffer createSafe(long address, int capacity)
public static AILogStream mallocStack()
AILogStream instance allocated on the thread-local MemoryStack.public static AILogStream callocStack()
AILogStream instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static AILogStream mallocStack(org.lwjgl.system.MemoryStack stack)
AILogStream instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static AILogStream callocStack(org.lwjgl.system.MemoryStack stack)
AILogStream instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static AILogStream.Buffer mallocStack(int capacity)
AILogStream.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static AILogStream.Buffer callocStack(int capacity)
AILogStream.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static AILogStream.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
AILogStream.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static AILogStream.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
AILogStream.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static AILogStreamCallback ncallback(long struct)
callback().public static long nuser(long struct)
user().public static void ncallback(long struct,
AILogStreamCallbackI value)
callback.public static void nuser(long struct,
long value)
user.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.