docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class DataSerializerBase

    Base abstraction class of the IDataSerializer interface.

    Inheritance
    object
    DataSerializerBase
    JsonDataSerializer
    Implements
    IDataSerializer
    Namespace: UnityEngine.GameFoundation.DataPersistence
    Assembly: solution.dll
    Syntax
    public abstract class DataSerializerBase : IDataSerializer

    Properties

    Name Description
    isBinarySerializer

    Is the serializer binary. Default is set to true.

    serializerName

    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.

    IsBinary()

    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.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)