docs.unity3d.com
    Show / Hide Table of Contents

    Interface IBinaryDeserializationContext

    The IBinaryDeserializationContext provides an untyped context for contravariant serialization adapters.

    Namespace: Unity.Serialization.Binary
    Syntax
    public interface IBinaryDeserializationContext

    Properties

    Reader

    Gets the serialized view for value being deserialized.

    Declaration
    UnsafeAppendBuffer.Reader*Reader { get; }
    Property Value
    Type Description
    UnsafeAppendBuffer.Reader*

    Methods

    ContinueVisitation()

    Continues de-serialization for the current value. This will run the next adapter in the sequence, or the default behaviour.

    Declaration
    object ContinueVisitation()
    Returns
    Type Description
    Object

    The deserialized value.

    ContinueVisitationWithoutAdapters()

    Continues de-serialization for the current type without running any more adapters. This will perform the default behaviour.

    Declaration
    object ContinueVisitationWithoutAdapters()
    Returns
    Type Description
    Object

    The deserialized value.

    DeserializeValue<T>()

    Reads the next value in the stream as T and returns it. This will run all adapters.

    Declaration
    T DeserializeValue<T>()
    Returns
    Type Description
    T

    The instance of type deserialized.

    Type Parameters
    Name Description
    T

    The type of the value being deserialized.

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023