Quantum 3
3.0.9
Wrapper around storing binary data in JSON to work around the problem that Unity JSON tools only serialize byte arrays verbosely. More...
Public Member Functions | |
| byte[] | Decode () |
| Decode the byte[] array. Based on the configuration will return the Binary (unzipped) or the Base64 (decoded and unzipped). More... | |
| delegate QuantumJsonFriendlyDataBlob | Encoder (byte[] data) |
| Used to customize encoding of this class in internal API. More... | |
Static Public Member Functions | |
| static QuantumJsonFriendlyDataBlob | Encode (byte[] data, bool isCompressed, bool asBase64String) |
| Encode a byte[]. More... | |
Public Attributes | |
| string | Base64 |
| The byte array is saved as Base64 text. More... | |
| byte[] | Binary |
| The byte array is saved as is. More... | |
| bool | IsCompressed |
| Both Binary and Base64 can be GZip compressed. More... | |
Wrapper around storing binary data in JSON to work around the problem that Unity JSON tools only serialize byte arrays verbosely.
| delegate QuantumJsonFriendlyDataBlob Quantum.QuantumJsonFriendlyDataBlob.Encoder | ( | byte[] | data | ) |
Used to customize encoding of this class in internal API.
| data | Data to encode |
|
inline |
|
inlinestatic |
Encode a byte[].
| data | The data to encode |
| isCompressed | Is the data GZip compressed |
| asBase64String | Is the data converted to base64 |
| byte [] Quantum.QuantumJsonFriendlyDataBlob.Binary |
The byte array is saved as is.
| string Quantum.QuantumJsonFriendlyDataBlob.Base64 |
The byte array is saved as Base64 text.