Photon Quantum 3.0.0

Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Quantum.QuantumUnityJsonSerializer.BinaryDataSurrogate Class Reference

Quantum.BinaryData surrogate. Compresses the data if it is larger than the threshold and replaces the data with a base64 encoded string. More...

Inheritance diagram for Quantum.QuantumUnityJsonSerializer.BinaryDataSurrogate:
Quantum.QuantumUnityJsonSerializer.AssetObjectSurrogate

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...
 

Detailed Description

Quantum.BinaryData surrogate. Compresses the data if it is larger than the threshold and replaces the data with a base64 encoded string.

Member Function Documentation

◆ Create()

static BinaryDataSurrogate Quantum.QuantumUnityJsonSerializer.BinaryDataSurrogate.Create ( BinaryData  asset,
int?  compressThreshold 
)
inlinestatic

Creates a surrogate from the asset. Optionally compresses the data if it is larger than the threshold.

Parameters
asset
compressThreshold
Returns

Member Data Documentation

◆ IsCompressed

bool Quantum.QuantumUnityJsonSerializer.BinaryDataSurrogate.IsCompressed

Is the data compressed.

◆ Data

string Quantum.QuantumUnityJsonSerializer.BinaryDataSurrogate.Data

Binary data as a base64 encoded string.