Package org.lwjgl.assimp
Class AIString
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.assimp.AIString
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class AIString extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAIString.BufferAn array ofAIStringstructs.
-
Constructor Summary
Constructors Constructor Description AIString(java.nio.ByteBuffer container)Creates aAIStringinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static AIStringcalloc()Returns a newAIStringinstance allocated withmemCalloc.static AIString.Buffercalloc(int capacity)Returns a newAIString.Bufferinstance allocated withmemCalloc.static AIString.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newAIString.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIStringcalloc(org.lwjgl.system.MemoryStack stack)Returns a newAIStringinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIStringcallocStack()Deprecated.static AIString.BuffercallocStack(int capacity)Deprecated.static AIString.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static AIStringcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static AIStringcreate()Returns a newAIStringinstance allocated withBufferUtils.static AIString.Buffercreate(int capacity)Returns a newAIString.Bufferinstance allocated withBufferUtils.static AIStringcreate(long address)Returns a newAIStringinstance for the specified memory address.static AIString.Buffercreate(long address, int capacity)Create aAIString.Bufferinstance at the specified memory.static AIStringcreateSafe(long address)static AIString.BuffercreateSafe(long address, int capacity)java.nio.ByteBufferdata()String buffer.AIStringdata(java.nio.ByteBuffer value)Copies the specified encoded string to thedata()field.java.lang.StringdataString()String buffer.intlength()Binary length of the string excluding the terminal 0.static AIStringmalloc()Returns a newAIStringinstance allocated withmemAlloc.static AIString.Buffermalloc(int capacity)Returns a newAIString.Bufferinstance allocated withmemAlloc.static AIString.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newAIString.Bufferinstance allocated on the specifiedMemoryStack.static AIStringmalloc(org.lwjgl.system.MemoryStack stack)Returns a newAIStringinstance allocated on the specifiedMemoryStack.static AIStringmallocStack()Deprecated.static AIString.BuffermallocStack(int capacity)Deprecated.static AIString.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static AIStringmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static java.nio.ByteBufferndata(long struct)Unsafe version ofdata().static voidndata(long struct, java.nio.ByteBuffer value)Unsafe version ofdata.static java.lang.StringndataString(long struct)Unsafe version ofdataString().static intnlength(long struct)Unsafe version oflength().static voidnlength(long struct, int value)Sets the specified value to thelengthfield of the specifiedstruct.AIStringset(AIString src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
AIString
public AIString(java.nio.ByteBuffer container)
Creates aAIStringinstance 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
-
length
public int length()
Binary length of the string excluding the terminal 0.
-
data, dataString
public java.nio.ByteBuffer data() public java.lang.String dataString()
String buffer.
-
data
public AIString data(java.nio.ByteBuffer value)
Copies the specified encoded string to thedata()field.
-
set
public AIString set(AIString src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static AIString malloc()
Returns a newAIStringinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static AIString calloc()
Returns a newAIStringinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static AIString create()
Returns a newAIStringinstance allocated withBufferUtils.
-
create
public static AIString create(long address)
Returns a newAIStringinstance for the specified memory address.
-
createSafe
@Nullable public static AIString createSafe(long address)
-
malloc
public static AIString.Buffer malloc(int capacity)
Returns a newAIString.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static AIString.Buffer calloc(int capacity)
Returns a newAIString.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static AIString.Buffer create(int capacity)
Returns a newAIString.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static AIString.Buffer create(long address, int capacity)
Create aAIString.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static AIString.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static AIString mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static AIString callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static AIString mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static AIString callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static AIString.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static AIString.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static AIString.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 AIString.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static AIString malloc(org.lwjgl.system.MemoryStack stack)
Returns a newAIStringinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static AIString calloc(org.lwjgl.system.MemoryStack stack)
Returns a newAIStringinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static AIString.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIString.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static AIString.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIString.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nlength
public static int nlength(long struct)
Unsafe version oflength().
-
ndata
public static java.nio.ByteBuffer ndata(long struct)
Unsafe version ofdata().
-
ndataString
public static java.lang.String ndataString(long struct)
Unsafe version ofdataString().
-
nlength
public static void nlength(long struct, int value)Sets the specified value to thelengthfield of the specifiedstruct.
-
ndata
public static void ndata(long struct, java.nio.ByteBuffer value)Unsafe version ofdata.
-
-