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

◆ WriteDocumentUsingGeneratedSerializer< TValue >()

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

Definition at line 233 of file JsonSerializer.cs.

234 {
235 JsonSerializerOptions options = jsonTypeInfo.Options;
236 PooledByteBufferWriter pooledByteBufferWriter = new PooledByteBufferWriter(options.DefaultBufferSize);
237 using (Utf8JsonWriter writer = new Utf8JsonWriter(pooledByteBufferWriter, options.GetWriterOptions()))
238 {
240 }
241 return JsonDocument.ParseRented(pooledByteBufferWriter, options.GetDocumentOptions());
242 }

References System.Text.Json.Dictionary, System.options, System.Text.Json.JsonDocument.ParseRented(), System.value, and System.writer.