public class AIString
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
length – Binary length of the string excluding the terminal 0.data[Assimp.MAXLEN] – String buffer.
struct aiString {
ai_uint32 length;
char data[Assimp.MAXLEN];
}| Modifier and Type | Class and Description |
|---|---|
static class |
AIString.Buffer
An array of
AIString structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DATA
The struct member offsets.
|
static int |
LENGTH
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
AIString(java.nio.ByteBuffer container)
Creates a
AIString instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static AIString |
calloc()
Returns a new
AIString instance allocated with memCalloc. |
static AIString.Buffer |
calloc(int capacity)
Returns a new
AIString.Buffer instance allocated with memCalloc. |
static AIString |
callocStack()
Returns a new
AIString instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static AIString.Buffer |
callocStack(int capacity)
Returns a new
AIString.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static AIString.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
AIString.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static AIString |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
AIString instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static AIString |
create()
Returns a new
AIString instance allocated with BufferUtils. |
static AIString.Buffer |
create(int capacity)
Returns a new
AIString.Buffer instance allocated with BufferUtils. |
static AIString |
create(long address)
Returns a new
AIString instance for the specified memory address. |
static AIString.Buffer |
create(long address,
int capacity)
Create a
AIString.Buffer instance at the specified memory. |
static AIString |
createSafe(long address)
|
static AIString.Buffer |
createSafe(long address,
int capacity)
|
java.nio.ByteBuffer |
data()
Returns a
ByteBuffer view of the data field. |
AIString |
data(java.nio.ByteBuffer value)
Copies the specified encoded string to the
data field. |
java.lang.String |
dataString()
Decodes the null-terminated string stored in the
data field. |
int |
length()
Returns the value of the
length field. |
static AIString |
malloc()
Returns a new
AIString instance allocated with memAlloc. |
static AIString.Buffer |
malloc(int capacity)
Returns a new
AIString.Buffer instance allocated with memAlloc. |
static AIString |
mallocStack()
Returns a new
AIString instance allocated on the thread-local MemoryStack. |
static AIString.Buffer |
mallocStack(int capacity)
Returns a new
AIString.Buffer instance allocated on the thread-local MemoryStack. |
static AIString.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
AIString.Buffer instance allocated on the specified MemoryStack. |
static AIString |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
AIString instance allocated on the specified MemoryStack. |
static java.nio.ByteBuffer |
ndata(long struct)
Unsafe version of
data(). |
static void |
ndata(long struct,
java.nio.ByteBuffer value)
Unsafe version of
data. |
static java.lang.String |
ndataString(long struct)
Unsafe version of
dataString(). |
static int |
nlength(long struct)
Unsafe version of
length(). |
static void |
nlength(long struct,
int value)
Sets the specified value to the
length field of the specified struct. |
AIString |
set(AIString src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int LENGTH
public static final int DATA
public AIString(java.nio.ByteBuffer container)
AIString 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 int length()
length field.public java.nio.ByteBuffer data()
ByteBuffer view of the data field.public java.lang.String dataString()
data field.public AIString data(java.nio.ByteBuffer value)
data field.public AIString set(AIString src)
src - the source structpublic static AIString malloc()
AIString instance allocated with memAlloc. The instance must be explicitly freed.public static AIString calloc()
AIString instance allocated with memCalloc. The instance must be explicitly freed.public static AIString create()
AIString instance allocated with BufferUtils.public static AIString create(long address)
AIString instance for the specified memory address.@Nullable public static AIString createSafe(long address)
public static AIString.Buffer malloc(int capacity)
AIString.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static AIString.Buffer calloc(int capacity)
AIString.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static AIString.Buffer create(int capacity)
AIString.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static AIString.Buffer create(long address, int capacity)
AIString.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static AIString.Buffer createSafe(long address, int capacity)
public static AIString mallocStack()
AIString instance allocated on the thread-local MemoryStack.public static AIString callocStack()
AIString instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static AIString mallocStack(org.lwjgl.system.MemoryStack stack)
AIString instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static AIString callocStack(org.lwjgl.system.MemoryStack stack)
AIString instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static AIString.Buffer mallocStack(int capacity)
AIString.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static AIString.Buffer callocStack(int capacity)
AIString.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static AIString.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
AIString.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static AIString.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
AIString.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 int nlength(long struct)
length().public static java.nio.ByteBuffer ndata(long struct)
data().public static java.lang.String ndataString(long struct)
dataString().public static void nlength(long struct,
int value)
length field of the specified struct.public static void ndata(long struct,
java.nio.ByteBuffer value)
data.Copyright LWJGL. All Rights Reserved. License terms.