Utf8JsonReaderManager Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |
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. |
Skip() |
Skips the children of the current JSON token, which may involve reading more data from the stream and creating a new Utf8JsonReader instance in CurrentReader. |