An asset containing raw binary data. Use CreateByteStream to access contents safely and auto-decompress, if compressed.
More...
An asset containing raw binary data. Use CreateByteStream to access contents safely and auto-decompress, if compressed.
◆ CreateByteStream()
ByteStream Quantum.BinaryData.CreateByteStream |
( |
| ) |
|
|
inline |
Create a ByteStream from the data in this asset. If IsCompressed is true
, the data will be decompressed.
- Returns
- Ready to read stream
◆ SetData()
void Quantum.BinaryData.SetData |
( |
byte[] |
data, |
|
|
bool |
compress |
|
) |
| |
|
inline |
Set the data for this asset. If compress is true
, the data will be compressed with GZipStream.
- Parameters
-
◆ Store()
void Quantum.BinaryData.Store |
( |
Stream |
stream | ) |
|
|
inline |
Store the data in this asset to a stream. If IsCompressed is true
, the data will be decompressed.
- Parameters
-
◆ Compress()
bool Quantum.BinaryData.Compress |
( |
| ) |
|
|
inline |
Compress the data in this asset.
- Returns
true
is data was compressed, otherwise false
if the data was already compressed
◆ Decompress()
bool Quantum.BinaryData.Decompress |
( |
| ) |
|
|
inline |
Decompress the data in this asset.
- Returns
true
is the data was decompressed, otherwise false
if the data was not compressed
◆ Data
byte [] Quantum.BinaryData.Data = { } |
If IsCompressed is true
, this needs decompressing before use.
◆ IsCompressed
bool Quantum.BinaryData.IsCompressed |
If true
, then Data has been compressed with GZipStream.