Share via


JsonReaderData Class

Definition

Contains state for use with a Utf8JsonReaderManager, abstracting the reading from a Stream or a buffer.

public class JsonReaderData
type JsonReaderData = class
Public Class JsonReaderData
Inheritance
JsonReaderData

Constructors

JsonReaderData(Byte[])

Creates a new JsonReaderData object to read JSON from the given buffer.

JsonReaderData(Stream)

Creates a new JsonReaderData object to read JSON from the given stream.

Methods

CaptureState(Utf8JsonReaderManager)

Called to capture the state of the given Utf8JsonReaderManager so that a new Utf8JsonReaderManager can later be created to pick up at the same position in the JSON document.

CreateReader()

Creates a Utf8JsonReader for the current captured state.

ReadBytes(Int32, JsonReaderState)

Called to read bytes from the stream.

Applies to