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

    Struct SerializedObjectReaderConfiguration

    Parameters used to configure the SerializedObjectReader.

    Namespace: Unity.Serialization.Json
    Syntax
    public struct SerializedObjectReaderConfiguration

    Fields

    BlockBufferSize

    The buffer size, in bytes, of the blocks/chunks read from the input stream. The default size is 4096.

    Declaration
    public int BlockBufferSize
    Field Value
    Type Description
    Int32

    Default

    The default parameters used by the SerializedObjectReader.

    Declaration
    public static readonly SerializedObjectReaderConfiguration Default
    Field Value
    Type Description
    SerializedObjectReaderConfiguration

    NodeBufferSize

    The size of the Node buffer for internal reads. For optimal performance, this should be equal to the maximum batch size. The default size is 128.

    Declaration
    public int NodeBufferSize
    Field Value
    Type Description
    Int32

    OutputBufferSize

    The packed binary output buffer size, in bytes. This should be big enough to contain all string and primitive data for the needed scope. The default size is 4096.

    Declaration
    public int OutputBufferSize
    Field Value
    Type Description
    Int32

    TokenBufferSize

    The internal token buffer size, in tokens. This should be big enough to contain all tokens generated from a block. The default size is 1024.

    Declaration
    public int TokenBufferSize
    Field Value
    Type Description
    Int32

    UseReadAsync

    If true, the input stream is read asynchronously. The default is true.

    Declaration
    public bool UseReadAsync
    Field Value
    Type Description
    Boolean

    ValidationType

    JSON validation type to use. The default is Standard.

    Declaration
    public JsonValidationType ValidationType
    Field Value
    Type Description
    JsonValidationType
    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