Class 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.
Inherited Members
Namespace: SharpAssimp
Assembly: SharpAssimp.dll
Syntax
public sealed class ExportDataBlob
Remarks
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
....
Properties
| Edit this page View SourceData
Get the blob data.
Declaration
public byte[]? Data { get; }
Property Value
Type | Description |
---|---|
byte[] |
HasData
Gets if the blob data is valid.
Declaration
public bool HasData { get; }
Property Value
Type | Description |
---|---|
bool |
Name
Gets the name of the blob. The first and primary blob always has an empty string for a name. Auxillary files that are nested will have names.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
string |
NextBlob
Gets the next data blob.
Declaration
public ExportDataBlob? NextBlob { get; }
Property Value
Type | Description |
---|---|
ExportDataBlob |
Methods
| Edit this page View SourceFromStream(Stream?)
Reads a data blob from the specified stream.
Declaration
public static ExportDataBlob? FromStream(Stream? stream)
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | Input stream |
Returns
Type | Description |
---|---|
ExportDataBlob | Data blob |
ToStream(Stream)
Writes the data blob to the specified stream.
Declaration
public void ToStream(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | Output stream |