Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ReadAll< TValue >()

static TValue System.Text.Json.JsonSerializer.ReadAll< TValue > ( Stream utf8Json,
JsonTypeInfo jsonTypeInfo )
inlinestaticpackage

Definition at line 1019 of file JsonSerializer.cs.

1020 {
1021 JsonSerializerOptions options = jsonTypeInfo.Options;
1022 ReadBufferState bufferState = new ReadBufferState(options.DefaultBufferSize);
1023 ReadStack readStack = default(ReadStack);
1025 JsonConverter converterBase = readStack.Current.JsonPropertyInfo.ConverterBase;
1026 JsonReaderState jsonReaderState = new JsonReaderState(options.GetReaderOptions());
1027 try
1028 {
1029 TValue result;
1030 do
1031 {
1034 }
1035 while (!bufferState.IsFinalBlock);
1036 return result;
1037 }
1038 finally
1039 {
1040 bufferState.Dispose();
1041 }
1042 }
static TValue ContinueDeserialize< TValue >(ref ReadBufferState bufferState, ref JsonReaderState jsonReaderState, ref ReadStack readStack, JsonConverter converter, JsonSerializerOptions options)
static ReadBufferState ReadFromStream(Stream utf8Json, ReadBufferState bufferState)

References System.Text.Json.JsonSerializer.ContinueDeserialize< TValue >(), System.Collections.Generic.Dictionary< TKey, TValue >.Initialize(), System.options, and System.Text.Json.JsonSerializer.ReadFromStream().

Referenced by System.Text.Json.JsonSerializer.Deserialize< TValue >(), and System.Text.Json.JsonSerializer.ReadAllUsingOptions< TValue >().