語言

JsonReaderData Class

Definition

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

[System.Runtime.CompilerServices.Nullable(0)]
public class JsonReaderData
public class JsonReaderData
[<System.Runtime.CompilerServices.Nullable(0)>]
type JsonReaderData = class
type JsonReaderData = class
Public Class JsonReaderData
Inheritance
JsonReaderData
Attributes

Constructors

Name Description
JsonReaderData(Byte[])

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

JsonReaderData(ReadOnlyMemory<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.

Properties

Name Description
BytesConsumed

The number of bytes read from the JSON data at the last captured state.

Methods

Name Description
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