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

◆ WriteBytesUsingGeneratedSerializer< TValue >()

static byte[] System.Text.Json.JsonSerializer.WriteBytesUsingGeneratedSerializer< TValue > ( in TValue value,
JsonTypeInfo jsonTypeInfo )
inlinestaticprivate

Definition at line 1468 of file JsonSerializer.cs.

1469 {
1470 JsonSerializerOptions options = jsonTypeInfo.Options;
1471 using PooledByteBufferWriter pooledByteBufferWriter = new PooledByteBufferWriter(options.DefaultBufferSize);
1472 using (Utf8JsonWriter writer = new Utf8JsonWriter(pooledByteBufferWriter, options.GetWriterOptions()))
1473 {
1475 }
1476 return pooledByteBufferWriter.WrittenMemory.ToArray();
1477 }

References System.Text.Json.Dictionary, System.options, System.value, and System.writer.