Doloro GDK 22 .1.0 Beta
by Tauri Interactive
|
Tools for handling binary operations with a data.
Methods that required to serialization and deserialization. Place it to the target classes that will be used in save system.
Static Public Member Functions | |
static T | BinaryToInstance< T > (SerializationInfo info) |
Decodes binary data to the instance of certain type. More... | |
static void | OverrideInstanceData< T > (T obj, SerializationInfo info) |
Decodes binary data to the instance of certain type above existed one. More... | |
static void | ToBinary (object obj, SerializationInfo info) |
Encodes object to the binary format. More... | |
static void | Serialize (object obj, string fullPath) |
Serializes data container to the file. More... | |
static void | Serialize (object obj, string fullPath, BinaryFormatter formatter) |
Serializes data container to the file. More... | |
static void | Serialize (object obj, out byte[] data) |
Serializes data container to the binary array. More... | |
static void | Serialize (object obj, out byte[] data, BinaryFormatter formatter) |
Serializes data container to the binary array. More... | |
static T | Deserialize< T > (byte[] data) |
Deserializes data from the binary array. More... | |
static T | Deserialize< T > (string fullPath) |
Deserializes data container from the file and return as object. More... | |
static T | Deserialize< T > (Stream stream) |
Deserializes data container from the file and return as object. More... | |
static object | Deserialize (byte[] data, BinaryFormatter formatter) |
Deserializes data from the binary array. More... | |
static object | Deserialize (byte[] data) |
Deserializes data from the binary array. More... | |
static object | Deserialize (string fullPath) |
Deserializes data container from the file and return as object. More... | |
static object | Deserialize (string fullPath, BinaryFormatter formatter) |
Deserializes data container from the file and return as object. More... | |
static object | Deserialize (Stream stream) |
Deserializes data container from the file and return as object. More... | |
static object | Deserialize (Stream stream, BinaryFormatter formatter) |
Deserializes data container from the file and return as object. More... | |
Events | |
static Action | LogsGenerated |
Occurs when new pass of Logs generated. | |
|
static |
Decodes binary data to the instance of certain type.
T | Supposed type of binary object. |
info | Information about object. |
|
static |
Deserializes data from the binary array.
data | Object in binary format. |
|
static |
Deserializes data from the binary array.
data | Object in binary format. |
formatter | Custom configured binary formatter. |
|
static |
Deserializes data container from the file and return as object.
stream | Source stream to binary data reading. |
SerializationException | Serialization failed. |
|
static |
Deserializes data container from the file and return as object.
stream | Source stream to binary data reading. |
formatter | Custom configured binary formatter. |
SerializationException | Serialization failed. |
ArgumentNullException | One of arguments is null. |
IOException | Stream not allows can't be read. |
|
static |
Deserializes data container from the file and return as object.
fullPath | Output relative directory with file name and extension. |
SerializationException | Serialization failed. |
FileNotFoundException | Destination file not found. |
|
static |
Deserializes data container from the file and return as object.
fullPath | Output relative directory with file name and extension. |
formatter | Custom configured binary formatter. |
SerializationException | Serialization failed. |
FileNotFoundException | Destination file not found. |
|
static |
Deserializes data from the binary array.
T | Expecting data type. |
data | Object in binary format. |
SerializationException | Serialization failed. |
|
static |
Deserializes data container from the file and return as object.
stream | Source stream to binary data reading. |
SerializationException | Serialization failed. |
ArgumentNullException | stream is null |
ArgumentException | stream is empty. |
|
static |
Deserializes data container from the file and return as object.
fullPath | Output relative directory with file name and extension. |
SerializationException | Serialization failed. |
FileNotFoundException | Destination file not found. |
|
static |
Decodes binary data to the instance of certain type above existed one.
T | Supposed type of binary object. |
obj | Object those fields fill be overridden with binary data. |
info | Information about binary data. |
ArgumentNullException | Arguments can't be null . |
|
static |
Serializes data container to the binary array.
obj | Object for serialization. |
data | Output binary array. |
ArgumentNullException | obj or \ and formatter is null. |
SerializationException | Serialization failed. |
|
static |
Serializes data container to the binary array.
obj | Object for serialization. |
data | Output binary array. |
formatter | Custom binary formatter. |
ArgumentNullException | obj or \ and formatter is null. |
SerializationException | Serialization failed. |
|
static |
Serializes data container to the file.
obj | Object for serialization. |
fullPath | Output relative directory with file name and extension. |
ArgumentNullException | obj or \ and formatter is null. |
ArgumentException | fullPath is null or whitespace. |
SerializationException | Serialization failed. |
|
static |
Serializes data container to the file.
obj | Object for serialization. |
fullPath | Output relative directory with file name and extension. |
formatter | Custom binary formatter to use. |
ArgumentNullException | obj or \ and formatter is null. |
ArgumentException | fullPath is null or whitespace. |
SerializationException | Serialization failed. |
|
static |
Encodes object to the binary format.
obj | Object to binary encoding. |
info | Output serialization data. |
Ignores fields marked with System.NonSerializedAttribute or NotSerializeAttribute attributes.
Forces serialization of privatefields marked with SerializeAttribute and UnityEngine.SerializeField attributes.