Struct TinyJsonStreamingWriter | Project Tiny | 0.32.0-preview.54
docs.unity3d.com
    Show / Hide Table of Contents

    Struct TinyJsonStreamingWriter

    Namespace: Unity.Tiny.JSON
    Syntax
    public struct TinyJsonStreamingWriter : IDisposable

    Constructors

    TinyJsonStreamingWriter(Allocator, Int32, Int32)

    Declaration
    public TinyJsonStreamingWriter(Allocator allocator, int expectedSize = 50, int expectedDepth = 5)
    Parameters
    Type Name Description
    Allocator allocator
    Int32 expectedSize
    Int32 expectedDepth

    Methods

    Dispose()

    Declaration
    public void Dispose()

    PopArray()

    Declaration
    public void PopArray()

    PopObject()

    Declaration
    public void PopObject()

    PushArrayField(FixedString128)

    Declaration
    public void PushArrayField(FixedString128 key)
    Parameters
    Type Name Description
    FixedString128 key

    PushArrayToArray()

    Declaration
    public void PushArrayToArray()

    PushObjectField(FixedString128)

    Declaration
    public void PushObjectField(FixedString128 key)
    Parameters
    Type Name Description
    FixedString128 key

    PushObjectToArray()

    Declaration
    public void PushObjectToArray()

    PushValueField(FixedString128, Boolean)

    Declaration
    public void PushValueField(FixedString128 key, bool value)
    Parameters
    Type Name Description
    FixedString128 key
    Boolean value

    PushValueField(FixedString128, Int32)

    Declaration
    public void PushValueField(FixedString128 key, int value)
    Parameters
    Type Name Description
    FixedString128 key
    Int32 value

    PushValueField(FixedString128, Single)

    Declaration
    public void PushValueField(FixedString128 key, float value)
    Parameters
    Type Name Description
    FixedString128 key
    Single value

    PushValueField(FixedString128, FixedString4096)

    Declaration
    public void PushValueField(FixedString128 key, FixedString4096 value)
    Parameters
    Type Name Description
    FixedString128 key
    FixedString4096 value

    PushValueToArray(Boolean)

    Declaration
    public int PushValueToArray(bool value)
    Parameters
    Type Name Description
    Boolean value
    Returns
    Type Description
    Int32

    PushValueToArray(Int32)

    Declaration
    public int PushValueToArray(int value)
    Parameters
    Type Name Description
    Int32 value
    Returns
    Type Description
    Int32

    PushValueToArray(Single)

    Declaration
    public int PushValueToArray(float value)
    Parameters
    Type Name Description
    Single value
    Returns
    Type Description
    Int32

    PushValueToArray(FixedString4096)

    Declaration
    public int PushValueToArray(FixedString4096 value)
    Parameters
    Type Name Description
    FixedString4096 value
    Returns
    Type Description
    Int32

    WriteToInterface(Allocator)

    Declaration
    public TinyJsonInterface WriteToInterface(Allocator allocator)
    Parameters
    Type Name Description
    Allocator allocator
    Returns
    Type Description
    TinyJsonInterface

    WriteToString()

    Declaration
    public HeapString WriteToString()
    Returns
    Type Description
    HeapString
    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