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

◆ WriteElementUsingSerializer< TValue >()

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

Definition at line 302 of file JsonSerializer.cs.

303 {
304 JsonSerializerOptions options = jsonTypeInfo.Options;
305 using PooledByteBufferWriter pooledByteBufferWriter = new PooledByteBufferWriter(options.DefaultBufferSize);
306 using (Utf8JsonWriter writer = new Utf8JsonWriter(pooledByteBufferWriter, options.GetWriterOptions()))
307 {
309 }
310 return JsonElement.ParseValue(pooledByteBufferWriter.WrittenMemory.Span, options.GetDocumentOptions());
311 }

References System.Text.Json.Dictionary, System.options, System.Text.Json.JsonElement.ParseValue(), System.value, and System.writer.