Quantum.BinaryData surrogate. Compresses the data if it is larger than the threshold and replaces the data with a base64 encoded string. More...
Public Member Functions | |
override AssetObject | CreateAsset (QuantumUnityJsonSerializer serializer) |
Creates an asset object from the surrogate. | |
Static Public Member Functions | |
static BinaryDataSurrogate | Create (BinaryData asset, int? compressThreshold) |
Creates a surrogate from the asset. Optionally compresses the data if it is larger than the threshold. More... | |
Public Attributes | |
string | Data |
Binary data as a base64 encoded string. More... | |
bool | IsCompressed |
Is the data compressed. More... | |
Public Attributes inherited from Quantum.QuantumUnityJsonSerializer.AssetObjectSurrogate | |
AssetObjectIdentifier | Identifier |
Asset identifier. More... | |
Quantum.BinaryData surrogate. Compresses the data if it is larger than the threshold and replaces the data with a base64 encoded string.
|
inlinestatic |
Creates a surrogate from the asset. Optionally compresses the data if it is larger than the threshold.
asset | |
compressThreshold |
bool Quantum.QuantumUnityJsonSerializer.BinaryDataSurrogate.IsCompressed |
Is the data compressed.
string Quantum.QuantumUnityJsonSerializer.BinaryDataSurrogate.Data |
Binary data as a base64 encoded string.