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

◆ WriteStringUsingGeneratedSerializer< TValue >()

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

Definition at line 1855 of file JsonSerializer.cs.

1856 {
1857 if (jsonTypeInfo == null)
1858 {
1859 throw new ArgumentNullException("jsonTypeInfo");
1860 }
1861 JsonSerializerOptions options = jsonTypeInfo.Options;
1862 using PooledByteBufferWriter pooledByteBufferWriter = new PooledByteBufferWriter(options.DefaultBufferSize);
1863 using (Utf8JsonWriter writer = new Utf8JsonWriter(pooledByteBufferWriter, options.GetWriterOptions()))
1864 {
1866 }
1867 return JsonReaderHelper.TranscodeHelper(pooledByteBufferWriter.WrittenMemory.Span);
1868 }

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