Utf8JsonReader コンストラクター

定義

オーバーロード

名前 説明
Utf8JsonReader(ReadOnlySequence<Byte>, JsonReaderOptions)

指定したオプションを使用して UTF-8 でエンコードされたテキストの読み取り専用シーケンスを処理する Utf8JsonReader 構造体の新しいインスタンスを初期化します。

Utf8JsonReader(ReadOnlySpan<Byte>, JsonReaderOptions)

指定したオプションを使用して、UTF-8 でエンコードされたテキストの読み取り専用スパンを処理する Utf8JsonReader 構造体の新しいインスタンスを初期化します。

Utf8JsonReader(ReadOnlySequence<Byte>, Boolean, JsonReaderState)

UTF-8 でエンコードされたテキストの読み取り専用シーケンスを処理し、処理するすべてのテキストが入力に含まれているかどうかを示す、 Utf8JsonReader 構造体の新しいインスタンスを初期化します。

Utf8JsonReader(ReadOnlySpan<Byte>, Boolean, JsonReaderState)

UTF-8 でエンコードされたテキストの読み取り専用スパンを処理し、入力に処理するすべてのテキストが含まれているかどうかを示す、 Utf8JsonReader 構造体の新しいインスタンスを初期化します。

Utf8JsonReader(ReadOnlySequence<Byte>, JsonReaderOptions)

ソース:
Utf8JsonReader.MultiSegment.cs
ソース:
Utf8JsonReader.MultiSegment.cs
ソース:
Utf8JsonReader.MultiSegment.cs
ソース:
Utf8JsonReader.MultiSegment.cs
ソース:
Utf8JsonReader.MultiSegment.cs
ソース:
Utf8JsonReader.MultiSegment.cs
ソース:
Utf8JsonReader.MultiSegment.cs

指定したオプションを使用して UTF-8 でエンコードされたテキストの読み取り専用シーケンスを処理する Utf8JsonReader 構造体の新しいインスタンスを初期化します。

public Utf8JsonReader(System.Buffers.ReadOnlySequence<byte> jsonData, System.Text.Json.JsonReaderOptions options = default);
new System.Text.Json.Utf8JsonReader : System.Buffers.ReadOnlySequence<byte> * System.Text.Json.JsonReaderOptions -> System.Text.Json.Utf8JsonReader
Public Sub New (jsonData As ReadOnlySequence(Of Byte), Optional options As JsonReaderOptions = Nothing)

パラメーター

jsonData
ReadOnlySequence<Byte>

処理する UTF-8 でエンコードされた JSON テキスト。

options
JsonReaderOptions

JSON RFC とは異なる Utf8JsonReader のカスタマイズされた動作を定義するオプション (たとえば、コメントの処理方法や読み取り時に許容される最大深度)。 既定では、 Utf8JsonReader は JSON RFC に厳密に従います。JSON 内のコメントは無効であり、最大深度は 64 です。

注釈

この型は ref 構造体であるため、スタックのみの型であり、ref 構造体のすべての制限が適用されます。

このコンストラクターは、JSON ペイロード全体が jsonData に含まれていることを前提としています。これは Utf8JsonReader.IsFinalBlock = trueと同じです。

適用対象

Utf8JsonReader(ReadOnlySpan<Byte>, JsonReaderOptions)

ソース:
Utf8JsonReader.cs
ソース:
Utf8JsonReader.cs
ソース:
Utf8JsonReader.cs
ソース:
Utf8JsonReader.cs
ソース:
Utf8JsonReader.cs
ソース:
Utf8JsonReader.cs
ソース:
Utf8JsonReader.cs

指定したオプションを使用して、UTF-8 でエンコードされたテキストの読み取り専用スパンを処理する Utf8JsonReader 構造体の新しいインスタンスを初期化します。

public Utf8JsonReader(ReadOnlySpan<byte> jsonData, System.Text.Json.JsonReaderOptions options = default);
new System.Text.Json.Utf8JsonReader : ReadOnlySpan<byte> * System.Text.Json.JsonReaderOptions -> System.Text.Json.Utf8JsonReader
Public Sub New (jsonData As ReadOnlySpan(Of Byte), Optional options As JsonReaderOptions = Nothing)

パラメーター

jsonData
ReadOnlySpan<Byte>

処理する UTF-8 でエンコードされた JSON テキスト。

options
JsonReaderOptions

JSON RFC とは異なる Utf8JsonReader のカスタマイズされた動作を定義するオプション (たとえば、コメントの処理方法や読み取り時に許容される最大深度)。 既定では、 Utf8JsonReader は JSON RFC に厳密に従います。JSON 内のコメントは無効であり、最大深度は 64 です。

注釈

この型は ref 構造体であるため、スタックのみの型であり、ref 構造体のすべての制限が適用されます。

このコンストラクターは、JSON ペイロード全体が jsonData に含まれていることを前提としています。これは Utf8JsonReader.IsFinalBlock = trueと同じです。

適用対象

Utf8JsonReader(ReadOnlySequence<Byte>, Boolean, JsonReaderState)

ソース:
Utf8JsonReader.MultiSegment.cs
ソース:
Utf8JsonReader.MultiSegment.cs
ソース:
Utf8JsonReader.MultiSegment.cs
ソース:
Utf8JsonReader.MultiSegment.cs
ソース:
Utf8JsonReader.MultiSegment.cs
ソース:
Utf8JsonReader.MultiSegment.cs
ソース:
Utf8JsonReader.MultiSegment.cs

UTF-8 でエンコードされたテキストの読み取り専用シーケンスを処理し、処理するすべてのテキストが入力に含まれているかどうかを示す、 Utf8JsonReader 構造体の新しいインスタンスを初期化します。

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

パラメーター

jsonData
ReadOnlySequence<Byte>

処理する UTF-8 でエンコードされた JSON テキスト。

isFinalBlock
Boolean

true 入力シーケンスに処理するデータ全体が含まれていることを示す場合。 false 入力スパンに、後続するデータが多い部分データが含まれていることを示します。

state
JsonReaderState

リーダーの状態。 これがコンストラクターの最初の呼び出しである場合は、既定の状態を渡します。それ以外の場合は、Utf8JsonReaderの前のインスタンスから CurrentState プロパティの値を渡します。

注釈

この型は ref 構造体であるため、スタックのみの型であり、ref 構造体のすべての制限が適用されます。 これが、コンストラクターが JsonReaderStateを受け入れる理由です。

適用対象

Utf8JsonReader(ReadOnlySpan<Byte>, Boolean, JsonReaderState)

ソース:
Utf8JsonReader.cs
ソース:
Utf8JsonReader.cs
ソース:
Utf8JsonReader.cs
ソース:
Utf8JsonReader.cs
ソース:
Utf8JsonReader.cs
ソース:
Utf8JsonReader.cs
ソース:
Utf8JsonReader.cs

UTF-8 でエンコードされたテキストの読み取り専用スパンを処理し、入力に処理するすべてのテキストが含まれているかどうかを示す、 Utf8JsonReader 構造体の新しいインスタンスを初期化します。

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)

パラメーター

jsonData
ReadOnlySpan<Byte>

処理する UTF-8 でエンコードされた JSON テキスト。

isFinalBlock
Boolean

true 入力シーケンスに処理するデータ全体が含まれていることを示す場合。 false 入力スパンに、後続するデータが多い部分データが含まれていることを示します。

state
JsonReaderState

リーダーの状態。 これがコンストラクターの最初の呼び出しである場合は、既定の状態を渡します。それ以外の場合は、Utf8JsonReaderの前のインスタンスから CurrentState プロパティの値を渡します。

注釈

この型は ref 構造体であるため、スタックのみの型であり、ref 構造体のすべての制限が適用されます。 これが、コンストラクターが JsonReaderStateを受け入れる理由です。

適用対象