BinaryGameDB provides utility methods for Serializing and Deserializing GameDBs to and from binary representations that are encrypted and compressed.
More...
|
| static byte [] | Serialize (string json, string encryptionKey, string encryptionSalt) |
| | Serializes the specified json into a binary blob. More...
|
| |
| static string | Deserialize (byte[] data, string encryptionKey, string encryptionSalt) |
| | Deserializes the specified data in a JSON string. More...
|
| |
BinaryGameDB provides utility methods for Serializing and Deserializing GameDBs to and from binary representations that are encrypted and compressed.
◆ Deserialize()
| static string GameDBLibrary.BinaryGameDB.Deserialize |
( |
byte [] |
data, |
|
|
string |
encryptionKey, |
|
|
string |
encryptionSalt |
|
) |
| |
|
static |
Deserializes the specified data in a JSON string.
- Parameters
-
| data | The data. |
| encryptionKey | The encryption key. |
| encryptionSalt | The encryption salt. |
- Returns
- A JSON string decompressed and decrypted from the data passed in.
- Exceptions
-
| System.Exception | Throws an exception if it fails to decrypt or decompress the json |
◆ Serialize()
| static byte [] GameDBLibrary.BinaryGameDB.Serialize |
( |
string |
json, |
|
|
string |
encryptionKey, |
|
|
string |
encryptionSalt |
|
) |
| |
|
static |
Serializes the specified json into a binary blob.
- Parameters
-
| json | The json. |
| encryptionKey | The encryption key. |
| encryptionSalt | The encryption salt. |
- Returns
- A binary blob encrypted and compressed of the passed in JSON
- Exceptions
-
| System.Exception | Throws an exception if it fails to encrypt or compress the json |