Class AIExportDataBlob

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer

    public class AIExportDataBlob
    extends Struct
    implements NativeResource
    Describes a blob of exported scene data. Use 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.

    Member documentation

    • size – Size of the data in bytes
    • data – The data.
    • 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.

    • next – Pointer to the next blob in the chain or NULL if there is none.

    Layout

    
     struct aiExportDataBlob {
         size_t size;
         void * data;
         struct aiString name;
         struct aiExportDataBlob * next;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • SIZE, DATA, NAME, NEXT

        The struct member offsets.
    • Constructor Detail

      • AIExportDataBlob

        public AIExportDataBlob​(java.nio.ByteBuffer container)
        Creates a AIExportDataBlob instance at the current position of the specified ByteBuffer 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.