Struct PackedBinaryStream | Serialization | 1.4.3-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Struct PackedBinaryStream

    Output stream for deserialization. This stream is used to retain relevant data parsed during deserialization.

    Namespace: Unity.Serialization.Json
    Syntax
    public struct PackedBinaryStream : IDisposable
    Remarks

    The contents of the stream are not actualized and instead remain as a string of characters.

    Constructors

    PackedBinaryStream(Int32, Int32, Allocator)

    Constructs a new instance of PackedBinaryStream using the given capacities.

    Declaration
    public PackedBinaryStream(int initialTokensCapacity, int initialBufferCapacity, Allocator label)
    Parameters
    Type Name Description
    Int32 initialTokensCapacity

    Initial number of tokens to allocate.

    Int32 initialBufferCapacity

    Initial buffer size to allocate.

    Allocator label

    Allocator to use for internal buffers.

    PackedBinaryStream(Allocator)

    Constructs a new instance of PackedBinaryStream using default capacities.

    Declaration
    public PackedBinaryStream(Allocator label)
    Parameters
    Type Name Description
    Allocator label

    The memory allocator label to use.

    Methods

    Clear()

    Clears all token and buffer data.

    Declaration
    public void Clear()

    Dispose()

    Releases all resources used by the PackedBinaryStream.

    Declaration
    public void Dispose()
    Back to top
    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