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 class
AIString.Buffer
An array ofAIString
structs.
-
Constructor Summary
Constructors Constructor Description AIString(java.nio.ByteBuffer container)
Creates aAIString
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 static AIString
calloc()
Returns a newAIString
instance allocated withmemCalloc
.static AIString.Buffer
calloc(int capacity)
Returns a newAIString.Buffer
instance allocated withmemCalloc
.static AIString.Buffer
calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIString.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AIString
calloc(org.lwjgl.system.MemoryStack stack)
Returns a newAIString
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AIString
callocStack()
Deprecated.static AIString.Buffer
callocStack(int capacity)
Deprecated.static AIString.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.static AIString
callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.static AIString
create()
Returns a newAIString
instance allocated withBufferUtils
.static AIString.Buffer
create(int capacity)
Returns a newAIString.Buffer
instance allocated withBufferUtils
.static AIString
create(long address)
Returns a newAIString
instance for the specified memory address.static AIString.Buffer
create(long address, int capacity)
Create aAIString.Buffer
instance at the specified memory.static AIString
createSafe(long address)
static AIString.Buffer
createSafe(long address, int capacity)
java.nio.ByteBuffer
data()
String buffer.AIString
data(java.nio.ByteBuffer value)
Copies the specified encoded string to thedata()
field.java.lang.String
dataString()
String buffer.int
length()
Binary length of the string excluding the terminal 0.static AIString
malloc()
Returns a newAIString
instance allocated withmemAlloc
.static AIString.Buffer
malloc(int capacity)
Returns a newAIString.Buffer
instance allocated withmemAlloc
.static AIString.Buffer
malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIString.Buffer
instance allocated on the specifiedMemoryStack
.static AIString
malloc(org.lwjgl.system.MemoryStack stack)
Returns a newAIString
instance allocated on the specifiedMemoryStack
.static AIString
mallocStack()
Deprecated.static AIString.Buffer
mallocStack(int capacity)
Deprecated.static AIString.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.static AIString
mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.static java.nio.ByteBuffer
ndata(long struct)
Unsafe version ofdata()
.static void
ndata(long struct, java.nio.ByteBuffer value)
Unsafe version ofdata
.static java.lang.String
ndataString(long struct)
Unsafe version ofdataString()
.static int
nlength(long struct)
Unsafe version oflength()
.static void
nlength(long struct, int value)
Sets the specified value to thelength
field of the specifiedstruct
.AIString
set(AIString src)
Copies the specified struct data to this struct.int
sizeof()
-
-
-
Constructor Detail
-
AIString
public AIString(java.nio.ByteBuffer container)
Creates aAIString
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
-
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 newAIString
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static AIString calloc()
Returns a newAIString
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static AIString create()
Returns a newAIString
instance allocated withBufferUtils
.
-
create
public static AIString create(long address)
Returns a newAIString
instance for the specified memory address.
-
createSafe
@Nullable public static AIString createSafe(long address)
-
malloc
public static AIString.Buffer malloc(int capacity)
Returns a newAIString.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static AIString.Buffer calloc(int capacity)
Returns a newAIString.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static AIString.Buffer create(int capacity)
Returns a newAIString.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static AIString.Buffer create(long address, int capacity)
Create aAIString.Buffer
instance 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 newAIString
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
public static AIString calloc(org.lwjgl.system.MemoryStack stack)
Returns a newAIString
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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 thelength
field of the specifiedstruct
.
-
ndata
public static void ndata(long struct, java.nio.ByteBuffer value)
Unsafe version ofdata
.
-
-