Class DataSerializerBase
Base abstraction class of the IDataSerializer interface.
Implements
Namespace: UnityEngine .GameFoundation .DataPersistence
Assembly: solution.dll
Syntax
public abstract class DataSerializerBase : IDataSerializer
Properties
Name | Description |
---|---|
is |
Is the serializer binary. Default is set to true. |
serializer |
The serializer name. |
Methods
Name | Description |
---|---|
Deserialize(string, Type, bool) | Public abstraction of the deserialize method that deserialize the data from a string as the type T and return it as an object. Can use encryption. |
Deserialize<T>(byte[], bool) | Public abstraction of the deserialize method that deserialize the data from a byte array and return it as the type T. Can use encryption. |
Deserialize<T>(Stream, bool) | Public abstraction of the deserialize method that deserialize the data from a stream and return it as the type T. Can use encryption. |
Deserialize<T>(string, bool) | Public abstraction of the deserialize method that deserialize the data from a string and return it as the type T. Can use encryption. |
Is |
Return a bool that indicate if the serializer is binary type. |
Name() | Get the name of the serializer. |
Serialize(object) | Public abstraction of the serialize method that serialize a data object and return the data as object. |
Serialize(object, bool) | Public abstraction of the serialize method that serialize a data object and return the data as string. Can use encryption. |
Serialize<T>(T, bool) | Public abstraction of the serialize method that serialize the data of a generic type T and return the data as string. Can use encryption. |
Serialize<T>(T, Stream, bool) | Public abstraction of the serialize method that serialize the data of a generic type T and write the data through a stream. Can use encryption. |