Package org.lwjgl.assimp
Class AIExportFormatDesc
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct aiExportFormatDesc {
char const * id;
char const * description;
char const * fileExtension;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionAIExportFormatDesc
(ByteBuffer container) Creates aAIExportFormatDesc
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic AIExportFormatDesc
calloc()
Returns a newAIExportFormatDesc
instance allocated withmemCalloc
.static AIExportFormatDesc.Buffer
calloc
(int capacity) Returns a newAIExportFormatDesc.Buffer
instance allocated withmemCalloc
.static AIExportFormatDesc.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newAIExportFormatDesc.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AIExportFormatDesc
calloc
(MemoryStack stack) Returns a newAIExportFormatDesc
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AIExportFormatDesc
Deprecated.static AIExportFormatDesc.Buffer
callocStack
(int capacity) Deprecated.static AIExportFormatDesc.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static AIExportFormatDesc
callocStack
(MemoryStack stack) Deprecated.static AIExportFormatDesc
create()
Returns a newAIExportFormatDesc
instance allocated withBufferUtils
.static AIExportFormatDesc.Buffer
create
(int capacity) Returns a newAIExportFormatDesc.Buffer
instance allocated withBufferUtils
.static AIExportFormatDesc
create
(long address) Returns a newAIExportFormatDesc
instance for the specified memory address.static AIExportFormatDesc.Buffer
create
(long address, int capacity) Create aAIExportFormatDesc.Buffer
instance at the specified memory.static @Nullable AIExportFormatDesc
createSafe
(long address) static @Nullable AIExportFormatDesc.Buffer
createSafe
(long address, int capacity) description
(ByteBuffer value) Sets the address of the specified encoded string to thedescription
field.fileExtension
(ByteBuffer value) Sets the address of the specified encoded string to thefileExtension
field.id()
id
(ByteBuffer value) Sets the address of the specified encoded string to theid
field.idString()
static AIExportFormatDesc
malloc()
Returns a newAIExportFormatDesc
instance allocated withmemAlloc
.static AIExportFormatDesc.Buffer
malloc
(int capacity) Returns a newAIExportFormatDesc.Buffer
instance allocated withmemAlloc
.static AIExportFormatDesc.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newAIExportFormatDesc.Buffer
instance allocated on the specifiedMemoryStack
.static AIExportFormatDesc
malloc
(MemoryStack stack) Returns a newAIExportFormatDesc
instance allocated on the specifiedMemoryStack
.static AIExportFormatDesc
Deprecated.static AIExportFormatDesc.Buffer
mallocStack
(int capacity) Deprecated.static AIExportFormatDesc.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static AIExportFormatDesc
mallocStack
(MemoryStack stack) Deprecated.static ByteBuffer
ndescription
(long struct) Unsafe version ofdescription()
.static void
ndescription
(long struct, ByteBuffer value) Unsafe version ofdescription
.static String
ndescriptionString
(long struct) Unsafe version ofdescriptionString()
.static ByteBuffer
nfileExtension
(long struct) Unsafe version offileExtension()
.static void
nfileExtension
(long struct, ByteBuffer value) Unsafe version offileExtension
.static String
nfileExtensionString
(long struct) Unsafe version offileExtensionString()
.static ByteBuffer
nid
(long struct) Unsafe version ofid()
.static void
nid
(long struct, ByteBuffer value) Unsafe version ofid
.static String
nidString
(long struct) Unsafe version ofidString()
.set
(ByteBuffer id, ByteBuffer description, ByteBuffer fileExtension) Initializes this struct with the specified values.set
(AIExportFormatDesc src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.static void
validate
(long struct) Validates pointer members that should not beNULL
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
ID
public static final int IDThe struct member offsets. -
DESCRIPTION
public static final int DESCRIPTIONThe struct member offsets. -
FILEEXTENSION
public static final int FILEEXTENSIONThe struct member offsets.
-
-
Constructor Details
-
AIExportFormatDesc
Creates aAIExportFormatDesc
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<AIExportFormatDesc>
-
id
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by theid
field.
-
idString
- Returns:
- the null-terminated string pointed to by the
id
field.
-
description
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by thedescription
field.
-
descriptionString
- Returns:
- the null-terminated string pointed to by the
description
field.
-
fileExtension
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by thefileExtension
field.
-
fileExtensionString
- Returns:
- the null-terminated string pointed to by the
fileExtension
field.
-
id
Sets the address of the specified encoded string to theid
field. -
description
Sets the address of the specified encoded string to thedescription
field. -
fileExtension
Sets the address of the specified encoded string to thefileExtension
field. -
set
Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newAIExportFormatDesc
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newAIExportFormatDesc
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newAIExportFormatDesc
instance allocated withBufferUtils
. -
create
Returns a newAIExportFormatDesc
instance for the specified memory address. -
createSafe
-
malloc
Returns a newAIExportFormatDesc.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newAIExportFormatDesc.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newAIExportFormatDesc.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aAIExportFormatDesc.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newAIExportFormatDesc
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newAIExportFormatDesc
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newAIExportFormatDesc.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newAIExportFormatDesc.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nid
Unsafe version ofid()
. -
nidString
Unsafe version ofidString()
. -
ndescription
Unsafe version ofdescription()
. -
ndescriptionString
Unsafe version ofdescriptionString()
. -
nfileExtension
Unsafe version offileExtension()
. -
nfileExtensionString
Unsafe version offileExtensionString()
. -
nid
Unsafe version ofid
. -
ndescription
Unsafe version ofdescription
. -
nfileExtension
Unsafe version offileExtension
. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-