docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IBinarySerializationContext

    The IBinarySerializationContext provides an untyped context for contravariant serialization adapters.

    Namespace: Unity.Serialization.Binary
    Assembly: Unity.Serialization.dll
    Syntax
    public interface IBinarySerializationContext

    Properties

    Writer

    Gets the underlying Unity.Collections.LowLevel.Unsafe.UnsafeAppendBuffer which can be used to output data.

    Declaration
    UnsafeAppendBuffer* Writer { get; }
    Property Value
    Type Description
    UnsafeAppendBuffer*

    Methods

    ContinueVisitation()

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

    Declaration
    void ContinueVisitation()

    ContinueVisitationWithoutAdapters()

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

    Declaration
    void ContinueVisitationWithoutAdapters()

    SerializeValue<T>(T)

    Writes the given value to the stream. This will run all adapters.

    Declaration
    void SerializeValue<T>(T value)
    Parameters
    Type Name Description
    T value

    The value to write.

    Type Parameters
    Name Description
    T

    The value type to write.

    In This Article
    Back to top
    Copyright © 2025 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)