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

◆ WriteStringUsingSerializer< TValue >()

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

Definition at line 1870 of file JsonSerializer.cs.

1871 {
1872 if (jsonTypeInfo == null)
1873 {
1874 throw new ArgumentNullException("jsonTypeInfo");
1875 }
1876 JsonSerializerOptions options = jsonTypeInfo.Options;
1877 using PooledByteBufferWriter pooledByteBufferWriter = new PooledByteBufferWriter(options.DefaultBufferSize);
1878 using (Utf8JsonWriter writer = new Utf8JsonWriter(pooledByteBufferWriter, options.GetWriterOptions()))
1879 {
1881 }
1882 return JsonReaderHelper.TranscodeHelper(pooledByteBufferWriter.WrittenMemory.Span);
1883 }

References System.Text.Json.Dictionary, System.options, System.Text.Json.JsonReaderHelper.TranscodeHelper(), System.value, and System.writer.