Share via


Utf8JsonReaderManager Struct

Definition

Manages buffering underneath a Utf8JsonReader.

[System.Runtime.CompilerServices.CompilerFeatureRequired("RefStructs")]
[System.Runtime.CompilerServices.IsByRefLike]
public ref struct Utf8JsonReaderManager
[<System.Runtime.CompilerServices.CompilerFeatureRequired("RefStructs")>]
[<System.Runtime.CompilerServices.IsByRefLike>]
type Utf8JsonReaderManager = struct
Public Structure Utf8JsonReaderManager
Inheritance
Utf8JsonReaderManager
Attributes

Remarks

The consumer should call MoveNext() to advance to the next token in the JSON document, which may involve reading more data from the stream and creating a new Utf8JsonReader instance in CurrentReader.

Constructors

Utf8JsonReaderManager(JsonReaderData, IDiagnosticsLogger<DbLoggerCategory.Query>)

Creates a new Utf8JsonReaderManager instance that will start reading at the position in the JSON document captured in the given JsonReaderData

Fields

CurrentReader

The Utf8JsonReader set to the next token to be consumed.

Data

Tracks state and underlying stream or buffer of UTF8 bytes.

Properties

QueryLogger

Logger for logging events that happen when reading/writing JSON values, or null if logging is not available.

Methods

CaptureState()

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

MoveNext()

Moves to the next token, which may involve reading more data from the stream and creating a new Utf8JsonReader instance in CurrentReader.

Applies to