C# Класс 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 ....
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
FromStream ( Stream stream ) : ExportDataBlob

Reads a data blob from the specified stream.

ToStream ( Stream stream ) : void

Writes the data blob to the specified stream.

Приватные методы

Метод Описание
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

Описание методов

FromStream() публичный статический Метод

Reads a data blob from the specified stream.
public static FromStream ( Stream stream ) : ExportDataBlob
stream Stream Input stream
Результат ExportDataBlob

ToStream() публичный Метод

Writes the data blob to the specified stream.
public ToStream ( Stream stream ) : void
stream Stream Output stream
Результат void