ExportSceneToBlob to create a blob containing an exported scene. The memory referred by this structure
is owned by Assimp. to free its resources. Don't try to free the memory on your side - it will crash for most build configurations due to conflicting
heaps.
Blobs can be nested - each blob may reference another blob, which may in turn reference another blob and so on. This is used when exporters write more
than one output file for a given AIScene. See the remarks for aiExportDataBlob::name for more information.
struct aiExportDataBlob {
size_t size;
void * data;
struct aiString name;
struct aiExportDataBlob * next;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | AIExportDataBlob.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | DATA
The struct member offsets. |
| public static final int | NAME
The struct member offsets. |
| public static final int | NEXT
The struct member offsets. |
| public static final int | SIZE
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | AIExportDataBlob(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static AIExportDataBlob | |
| public static AIExportDataBlob. | calloc(int
the buffer capacity capacity)Returns a new |
| public static AIExportDataBlob | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static AIExportDataBlob. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static AIExportDataBlob | |
| public static AIExportDataBlob | |
| public static AIExportDataBlob. | |
| public static AIExportDataBlob. | |
| protected AIExportDataBlob | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static AIExportDataBlob | |
| public static AIExportDataBlob | |
| public static AIExportDataBlob. | create(int
the buffer capacity capacity)Returns a new |
| public static AIExportDataBlob. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static AIExportDataBlob | |
| public static AIExportDataBlob. | |
| public ByteBuffer | |
| public AIExportDataBlob | |
| public static AIExportDataBlob | |
| public static AIExportDataBlob. | malloc(int
the buffer capacity capacity)Returns a new |
| public static AIExportDataBlob | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static AIExportDataBlob. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static AIExportDataBlob | |
| public static AIExportDataBlob | |
| public static AIExportDataBlob. | |
| public static AIExportDataBlob. | |
| public AIString | |
| public AIExportDataBlob | |
| public AIExportDataBlob | |
| public static ByteBuffer | |
| public static void | |
| public AIExportDataBlob | |
| public AIExportDataBlob | |
| public static AIString | |
| public static void | |
| public static AIExportDataBlob | |
| public static void | |
| public static long | |
| public static void | |
| public AIExportDataBlob | set(ByteBuffer data, AIString name, AIExportDataBlob next)
Initializes this struct with the specified values. |
| public AIExportDataBlob | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public long | |
| public int | |
| public static void |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| DATA | back to summary |
|---|---|
| public static final int DATA The struct member offsets. | |
| NAME | back to summary |
|---|---|
| public static final int NAME The struct member offsets. | |
| NEXT | back to summary |
|---|---|
| public static final int NEXT The struct member offsets. | |
| SIZE | back to summary |
|---|---|
| public static final int SIZE The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| AIExportDataBlob | back to summary |
|---|---|
| protected AIExportDataBlob(long address, ByteBuffer container) | |
| AIExportDataBlob | back to summary |
|---|---|
| public AIExportDataBlob(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static AIExportDataBlob calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static AIExportDataBlob. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static AIExportDataBlob calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static AIExportDataBlob. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static AIExportDataBlob callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static AIExportDataBlob callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static AIExportDataBlob. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static AIExportDataBlob. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| create | back to summary |
|---|---|
| protected AIExportDataBlob create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static AIExportDataBlob create() Returns a new | |
| create | back to summary |
|---|---|
| public static AIExportDataBlob create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static AIExportDataBlob. Returns a new
| |
| create | back to summary |
|---|---|
| public static AIExportDataBlob. Create a
| |
| createSafe | back to summary |
|---|---|
| public static AIExportDataBlob createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static AIExportDataBlob. Like
| |
| data | back to summary |
|---|---|
| public ByteBuffer data() The data.
| |
| data | back to summary |
|---|---|
| public AIExportDataBlob data(ByteBuffer value) Sets the address of the specified | |
| malloc | back to summary |
|---|---|
| public static AIExportDataBlob malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static AIExportDataBlob. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static AIExportDataBlob malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static AIExportDataBlob. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static AIExportDataBlob mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static AIExportDataBlob mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static AIExportDataBlob. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static AIExportDataBlob. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| name | back to summary |
|---|---|
| public AIString name() Name of the blob. An empty string always indicates the first (and primary) blob, which contains the actual file data. Any other blobs are auxiliary files produced by exporters (i.e. material files). Existence of such files depends on the file format. Most formats don't split assets across multiple files. If used, blob names usually contain the file extension that should be used when writing the data to disc. The blob names generated can be influenced by setting the
| |
| name | back to summary |
|---|---|
| public AIExportDataBlob name(AIString value) | |
| name | back to summary |
|---|---|
| public AIExportDataBlob name(Consumer<AIString> consumer) | |
| ndata | back to summary |
|---|---|
| public static ByteBuffer ndata(long struct) Unsafe version of | |
| ndata | back to summary |
|---|---|
| public static void ndata(long struct, ByteBuffer value) Unsafe version of | |
| next | back to summary |
|---|---|
| public AIExportDataBlob next() Pointer to the next blob in the chain or NULL if there is none.
| |
| next | back to summary |
|---|---|
| public AIExportDataBlob next(AIExportDataBlob value) Sets the address of the specified | |
| nname | back to summary |
|---|---|
| public static AIString nname(long struct) Unsafe version of | |
| nname | back to summary |
|---|---|
| public static void nname(long struct, AIString value) Unsafe version of | |
| nnext | back to summary |
|---|---|
| public static AIExportDataBlob nnext(long struct) Unsafe version of
| |
| nnext | back to summary |
|---|---|
| public static void nnext(long struct, AIExportDataBlob value) Unsafe version of | |
| nsize | back to summary |
|---|---|
| public static long nsize(long struct) Unsafe version of | |
| nsize | back to summary |
|---|---|
| public static void nsize(long struct, long value) Sets the specified value to the | |
| set | back to summary |
|---|---|
| public AIExportDataBlob set(ByteBuffer data, AIString name, AIExportDataBlob next) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public AIExportDataBlob set(AIExportDataBlob src) Copies the specified struct data to this struct.
| |
| size | back to summary |
|---|---|
| public long size() Size of the data in bytes
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| validate | back to summary |
|---|---|
| public static void validate(long struct) Validates pointer members that should not be
| |
AIExportDataBlob structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final AIExportDataBlob |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public ByteBuffer | |
| public AIExportDataBlob. | data(ByteBuffer value)
Sets the address of the specified |
| protected AIExportDataBlob | |
| public AIString | |
| public AIExportDataBlob. | |
| public AIExportDataBlob. | |
| public AIExportDataBlob | |
| public AIExportDataBlob. | next(AIExportDataBlob value)
Sets the address of the specified |
| protected AIExportDataBlob. | |
| public long |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final AIExportDataBlob ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| data | back to summary |
|---|---|
public ByteBuffer data()
| |
| data | back to summary |
|---|---|
| public AIExportDataBlob. Sets the address of the specified | |
| getElementFactory | back to summary |
|---|---|
| protected AIExportDataBlob getElementFactory() Implements abstract org.
| |
| name | back to summary |
|---|---|
public AIString name()
| |
| name | back to summary |
|---|---|
| public AIExportDataBlob. Copies the specified | |
| name | back to summary |
|---|---|
| public AIExportDataBlob. Passes the | |
| next | back to summary |
|---|---|
public AIExportDataBlob next()
| |
| next | back to summary |
|---|---|
| public AIExportDataBlob. Sets the address of the specified | |
| self | back to summary |
|---|---|
| protected AIExportDataBlob. Implements abstract org.
| |
| size | back to summary |
|---|---|
public long size()
| |