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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe 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 aAIExportFormatDescinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic AIExportFormatDesccalloc()Returns a newAIExportFormatDescinstance allocated withmemCalloc.static AIExportFormatDesc.Buffercalloc(int capacity) Returns a newAIExportFormatDesc.Bufferinstance allocated withmemCalloc.static AIExportFormatDesc.Buffercalloc(int capacity, MemoryStack stack) Returns a newAIExportFormatDesc.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIExportFormatDesccalloc(MemoryStack stack) Returns a newAIExportFormatDescinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIExportFormatDescDeprecated.static AIExportFormatDesc.BuffercallocStack(int capacity) Deprecated.static AIExportFormatDesc.BuffercallocStack(int capacity, MemoryStack stack) Deprecated.static AIExportFormatDesccallocStack(MemoryStack stack) Deprecated.static AIExportFormatDesccreate()Returns a newAIExportFormatDescinstance allocated withBufferUtils.static AIExportFormatDesc.Buffercreate(int capacity) Returns a newAIExportFormatDesc.Bufferinstance allocated withBufferUtils.static AIExportFormatDesccreate(long address) Returns a newAIExportFormatDescinstance for the specified memory address.static AIExportFormatDesc.Buffercreate(long address, int capacity) Create aAIExportFormatDesc.Bufferinstance at the specified memory.static @Nullable AIExportFormatDesccreateSafe(long address) static @Nullable AIExportFormatDesc.BuffercreateSafe(long address, int capacity) description(ByteBuffer value) Sets the address of the specified encoded string to thedescriptionfield.fileExtension(ByteBuffer value) Sets the address of the specified encoded string to thefileExtensionfield.id()id(ByteBuffer value) Sets the address of the specified encoded string to theidfield.idString()static AIExportFormatDescmalloc()Returns a newAIExportFormatDescinstance allocated withmemAlloc.static AIExportFormatDesc.Buffermalloc(int capacity) Returns a newAIExportFormatDesc.Bufferinstance allocated withmemAlloc.static AIExportFormatDesc.Buffermalloc(int capacity, MemoryStack stack) Returns a newAIExportFormatDesc.Bufferinstance allocated on the specifiedMemoryStack.static AIExportFormatDescmalloc(MemoryStack stack) Returns a newAIExportFormatDescinstance allocated on the specifiedMemoryStack.static AIExportFormatDescDeprecated.static AIExportFormatDesc.BuffermallocStack(int capacity) Deprecated.static AIExportFormatDesc.BuffermallocStack(int capacity, MemoryStack stack) Deprecated.static AIExportFormatDescmallocStack(MemoryStack stack) Deprecated.static ByteBufferndescription(long struct) Unsafe version ofdescription().static voidndescription(long struct, ByteBuffer value) Unsafe version ofdescription.static StringndescriptionString(long struct) Unsafe version ofdescriptionString().static ByteBuffernfileExtension(long struct) Unsafe version offileExtension().static voidnfileExtension(long struct, ByteBuffer value) Unsafe version offileExtension.static StringnfileExtensionString(long struct) Unsafe version offileExtensionString().static ByteBuffernid(long struct) Unsafe version ofid().static voidnid(long struct, ByteBuffer value) Unsafe version ofid.static StringnidString(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.intsizeof()Returnssizeof(struct).static voidvalidate(long struct) Validates pointer members that should not beNULL.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 aAIExportFormatDescinstance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<AIExportFormatDesc>
-
id
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by theidfield.
-
idString
- Returns:
- the null-terminated string pointed to by the
idfield.
-
description
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thedescriptionfield.
-
descriptionString
- Returns:
- the null-terminated string pointed to by the
descriptionfield.
-
fileExtension
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thefileExtensionfield.
-
fileExtensionString
- Returns:
- the null-terminated string pointed to by the
fileExtensionfield.
-
id
Sets the address of the specified encoded string to theidfield. -
description
Sets the address of the specified encoded string to thedescriptionfield. -
fileExtension
Sets the address of the specified encoded string to thefileExtensionfield. -
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 newAIExportFormatDescinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newAIExportFormatDescinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newAIExportFormatDescinstance allocated withBufferUtils. -
create
Returns a newAIExportFormatDescinstance for the specified memory address. -
createSafe
-
malloc
Returns a newAIExportFormatDesc.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newAIExportFormatDesc.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newAIExportFormatDesc.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aAIExportFormatDesc.Bufferinstance 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 newAIExportFormatDescinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newAIExportFormatDescinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newAIExportFormatDesc.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newAIExportFormatDesc.Bufferinstance allocated on the specifiedMemoryStackand 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
-