Utf8JsonReader Utf8JsonReader Utf8JsonReader Utf8JsonReader Constructors

Definition

Overloads

Utf8JsonReader(ReadOnlySequence<Byte>, Boolean, JsonReaderState) Utf8JsonReader(ReadOnlySequence<Byte>, Boolean, JsonReaderState) Utf8JsonReader(ReadOnlySequence<Byte>, Boolean, JsonReaderState) Utf8JsonReader(ReadOnlySequence<Byte>, Boolean, JsonReaderState)

Initializes a new instance of the Utf8JsonReader class.

Utf8JsonReader(ReadOnlySpan<Byte>, Boolean, JsonReaderState) Utf8JsonReader(ReadOnlySpan<Byte>, Boolean, JsonReaderState) Utf8JsonReader(ReadOnlySpan<Byte>, Boolean, JsonReaderState) Utf8JsonReader(ReadOnlySpan<Byte>, Boolean, JsonReaderState)

Initializes a new instance of the Utf8JsonReader class.

Utf8JsonReader(ReadOnlySequence<Byte>, Boolean, JsonReaderState) Utf8JsonReader(ReadOnlySequence<Byte>, Boolean, JsonReaderState) Utf8JsonReader(ReadOnlySequence<Byte>, Boolean, JsonReaderState) Utf8JsonReader(ReadOnlySequence<Byte>, Boolean, JsonReaderState)

Initializes a new instance of the Utf8JsonReader class.

public:
 Utf8JsonReader(System::Buffers::ReadOnlySequence<System::Byte> % jsonData, bool isFinalBlock, System::Text::Json::JsonReaderState state);
public Utf8JsonReader (ref System.Buffers.ReadOnlySequence<byte> jsonData, bool isFinalBlock, System.Text.Json.JsonReaderState state);
new System.Text.Json.Utf8JsonReader :  * bool * System.Text.Json.JsonReaderState -> System.Text.Json.Utf8JsonReader
Public Sub New (ByRef jsonData As ReadOnlySequence(Of Byte), isFinalBlock As Boolean, state As JsonReaderState)

Parameters

jsonData
ReadOnlySequence<Byte>

The UTF-8 encoded JSON text to process.

isFinalBlock
Boolean Boolean Boolean Boolean

true when the input sequence contains the entire data to process. false only if it's known that the input span contains partial data with more data to follow.

state
JsonReaderState JsonReaderState JsonReaderState JsonReaderState

If this is the first call to the constructor, pass in a default state. Otherwise, capture the state from the previous instance of the Utf8JsonReader and pass that back.

Remarks

Since this type is a ref struct, it is a stack-only type, and all the limitations of ref structs apply to it. This is the reason why the constructor accepts a JsonReaderState.

Utf8JsonReader(ReadOnlySpan<Byte>, Boolean, JsonReaderState) Utf8JsonReader(ReadOnlySpan<Byte>, Boolean, JsonReaderState) Utf8JsonReader(ReadOnlySpan<Byte>, Boolean, JsonReaderState) Utf8JsonReader(ReadOnlySpan<Byte>, Boolean, JsonReaderState)

Initializes a new instance of the Utf8JsonReader class.

public:
 Utf8JsonReader(ReadOnlySpan<System::Byte> jsonData, bool isFinalBlock, System::Text::Json::JsonReaderState state);
public Utf8JsonReader (ReadOnlySpan<byte> jsonData, bool isFinalBlock, System.Text.Json.JsonReaderState state);
new System.Text.Json.Utf8JsonReader : ReadOnlySpan<byte> * bool * System.Text.Json.JsonReaderState -> System.Text.Json.Utf8JsonReader
Public Sub New (jsonData As ReadOnlySpan(Of Byte), isFinalBlock As Boolean, state As JsonReaderState)

Parameters

jsonData
ReadOnlySpan<Byte>

The UTF-8 encoded JSON text to process.

isFinalBlock
Boolean Boolean Boolean Boolean

true when the input span contains the entire data to process. false only if it's known that the input span contains partial data with more data to follow.

state
JsonReaderState JsonReaderState JsonReaderState JsonReaderState

A struct that contains the reader state. On the first call to the constructor, it should reflect a default state; otherwise, it should capture the state from the previous instance instance of the Utf8JsonReader and pass that back.

Remarks

Since this type is a ref struct, it is a stack-only type, and all the limitations of ref structs apply to it. This is the reason why the constructor accepts a JsonReaderState.

Applies to