C# Class Assimp.ExportDataBlob

Describes a blob of exported scene data. Blobs can be nested - each blob may reference another blob, which in turn can reference another and so on. This is used to allow exporters to write more than one output for a given scene, such as material files. Existence of such files depends on the format.
The stream representation of an ExportDataBlob is as follows: String: Name of the Blob int: Length of Binary Data byte[]: Binary Data bool: If has next data blob String: Name of nested blob int: Length of nested blob binary data byte[]: Nested blob binary data bool: If nested blob has next data blob ....
Datei anzeigen Open project: ubisoft/vrtist Class Usage Examples

Public Methods

Method Description
FromStream ( Stream stream ) : ExportDataBlob

Reads a data blob from the specified stream.

ToStream ( Stream stream ) : void

Writes the data blob to the specified stream.

Private Methods

Method Description
ExportDataBlob ( AiExportDataBlob &dataBlob ) : System

Creates a new ExportDataBlob.

ExportDataBlob ( String name, Array data ) : System

Creates a new ExportDataBlob.

ReadBlob ( BinaryReader reader ) : ExportDataBlob
WriteBlob ( ExportDataBlob blob, BinaryWriter writer ) : void

Method Details

FromStream() public static method

Reads a data blob from the specified stream.
public static FromStream ( Stream stream ) : ExportDataBlob
stream Stream Input stream
return ExportDataBlob

ToStream() public method

Writes the data blob to the specified stream.
public ToStream ( Stream stream ) : void
stream Stream Output stream
return void