docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Deserialize

    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.

    Declaration
    public abstract T Deserialize<T>(Stream stream, bool encrypted = false)
    Parameters
    Type Name Description
    Stream stream

    The stream to deserialize

    bool encrypted

    Is the deserialization encrypted

    Returns
    Type Description
    T

    The deserialized data as type T

    Type Parameters
    Name Description
    T

    The type of the data to be deserialized

    Implements
    IDataSerializer.Deserialize<T>(Stream, bool)

    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.

    Declaration
    public abstract object Deserialize(string data, Type t, bool encrypted = false)
    Parameters
    Type Name Description
    string data

    The data to deserialize as a string

    Type t

    The type of the data to be deserialized

    bool encrypted

    Is the deserialization encrypted

    Returns
    Type Description
    object

    The deserialized data as an object

    Implements
    IDataSerializer.Deserialize(string, Type, bool)

    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.

    Declaration
    public abstract T Deserialize<T>(byte[] data, bool encrypted = false)
    Parameters
    Type Name Description
    byte[] data

    The data to deserialize as a byte array

    bool encrypted

    Is the deserialization encrypted

    Returns
    Type Description
    T

    The deserialized data as type T

    Type Parameters
    Name Description
    T

    The type of the data to be deserialized

    Implements
    IDataSerializer.Deserialize<T>(byte[], bool)

    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.

    Declaration
    public abstract T Deserialize<T>(string data, bool encrypted = false)
    Parameters
    Type Name Description
    string data

    The data to deserialize as a string

    bool encrypted

    Is the deserialization encrypted

    Returns
    Type Description
    T

    The deserialized data as type T

    Type Parameters
    Name Description
    T

    The type of the data to be deserialized

    Implements
    IDataSerializer.Deserialize<T>(string, bool)
    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)