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

◆ WriteBytesUsingSerializer< TValue >()

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

Definition at line 1479 of file JsonSerializer.cs.

1480 {
1481 JsonSerializerOptions options = jsonTypeInfo.Options;
1482 using PooledByteBufferWriter pooledByteBufferWriter = new PooledByteBufferWriter(options.DefaultBufferSize);
1483 using (Utf8JsonWriter writer = new Utf8JsonWriter(pooledByteBufferWriter, options.GetWriterOptions()))
1484 {
1486 }
1487 return pooledByteBufferWriter.WrittenMemory.ToArray();
1488 }

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