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

◆ ReadFromSpan< TValue >() [1/2]

static TValue System.Text.Json.JsonSerializer.ReadFromSpan< TValue > ( ReadOnlySpan< byte > utf8Json,
JsonTypeInfo jsonTypeInfo,
int? actualByteCount = null )
inlinestaticprivate

Definition at line 773 of file JsonSerializer.cs.

774 {
775 JsonSerializerOptions options = jsonTypeInfo.Options;
776 JsonReaderState state = new JsonReaderState(options.GetReaderOptions());
777 Utf8JsonReader reader = new Utf8JsonReader(utf8Json, isFinalBlock: true, state);
778 ReadStack state2 = default(ReadStack);
780 JsonConverter converterBase = jsonTypeInfo.PropertyInfoForTypeInfo.ConverterBase;
782 {
783 return jsonConverter.ReadCore(ref reader, options, ref state2);
784 }
785 object obj = converterBase.ReadCoreAsObject(ref reader, options, ref state2);
786 return (TValue)obj;
787 }

References System.Collections.Generic.Dictionary< TKey, TValue >.Initialize(), System.obj, System.options, and System.state.

Referenced by System.Text.Json.JsonSerializer.Deserialize< TValue >(), System.Text.Json.JsonSerializer.Deserialize< TValue >(), System.Text.Json.JsonSerializer.Deserialize< TValue >(), System.Text.Json.JsonSerializer.Deserialize< TValue >(), System.Text.Json.JsonSerializer.Deserialize< TValue >(), System.Text.Json.JsonSerializer.Deserialize< TValue >(), System.Text.Json.JsonSerializer.ReadDocument< TValue >(), System.Text.Json.JsonSerializer.ReadFromSpan< TValue >(), System.Text.Json.JsonSerializer.ReadNode< TValue >(), and System.Text.Json.JsonSerializer.ReadUsingMetadata< TValue >().