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

◆ WriteNodeUsingGeneratedSerializer< TValue >()

static JsonNode System.Text.Json.JsonSerializer.WriteNodeUsingGeneratedSerializer< TValue > ( in TValue value,
JsonTypeInfo jsonTypeInfo )
inlinestaticprivate

Definition at line 349 of file JsonSerializer.cs.

350 {
351 JsonSerializerOptions options = jsonTypeInfo.Options;
352 using PooledByteBufferWriter pooledByteBufferWriter = new PooledByteBufferWriter(options.DefaultBufferSize);
353 using (Utf8JsonWriter writer = new Utf8JsonWriter(pooledByteBufferWriter, options.GetWriterOptions()))
354 {
356 }
357 return JsonNode.Parse(pooledByteBufferWriter.WrittenMemory.Span, options.GetNodeOptions());
358 }
static ? JsonNode Parse(ref Utf8JsonReader reader, JsonNodeOptions? nodeOptions=null)
Definition JsonNode.cs:495

References System.Text.Json.Dictionary, System.options, System.Text.Json.Nodes.JsonNode.Parse(), System.value, and System.writer.