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

◆ WriteNodeUsingSerializer< TValue >()

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

Definition at line 360 of file JsonSerializer.cs.

361 {
362 JsonSerializerOptions options = jsonTypeInfo.Options;
363 using PooledByteBufferWriter pooledByteBufferWriter = new PooledByteBufferWriter(options.DefaultBufferSize);
364 using (Utf8JsonWriter writer = new Utf8JsonWriter(pooledByteBufferWriter, options.GetWriterOptions()))
365 {
367 }
368 return JsonNode.Parse(pooledByteBufferWriter.WrittenMemory.Span, options.GetNodeOptions());
369 }
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.