GameDB  1.6.0
GameDB Pro is a plugin that provides an easy to use and powerful game and meta data editor
GameDBLibrary.BinaryGameDB Class Reference

BinaryGameDB provides utility methods for Serializing and Deserializing GameDBs to and from binary representations that are encrypted and compressed. More...

Static Public Member Functions

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

Detailed Description

BinaryGameDB provides utility methods for Serializing and Deserializing GameDBs to and from binary representations that are encrypted and compressed.

Member Function Documentation

◆ Deserialize()

static string GameDBLibrary.BinaryGameDB.Deserialize ( byte []  data,
string  encryptionKey,
string  encryptionSalt 
)
static

Deserializes the specified data in a JSON string.

Parameters
dataThe data.
encryptionKeyThe encryption key.
encryptionSaltThe encryption salt.
Returns
A JSON string decompressed and decrypted from the data passed in.
Exceptions
System.ExceptionThrows 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
jsonThe json.
encryptionKeyThe encryption key.
encryptionSaltThe encryption salt.
Returns
A binary blob encrypted and compressed of the passed in JSON
Exceptions
System.ExceptionThrows an exception if it fails to encrypt or compress the json