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

◆ WriteDocumentUsingSerializer< TValue >()

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

Definition at line 244 of file JsonSerializer.cs.

245 {
246 JsonSerializerOptions options = jsonTypeInfo.Options;
247 PooledByteBufferWriter pooledByteBufferWriter = new PooledByteBufferWriter(options.DefaultBufferSize);
248 using (Utf8JsonWriter writer = new Utf8JsonWriter(pooledByteBufferWriter, options.GetWriterOptions()))
249 {
251 }
252 return JsonDocument.ParseRented(pooledByteBufferWriter, options.GetDocumentOptions());
253 }

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