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

◆ WriteStream< TValue >()

static void System.Text.Json.JsonSerializer.WriteStream< TValue > ( Stream utf8Json,
in TValue value,
JsonTypeInfo jsonTypeInfo )
inlinestaticprivate

Definition at line 1804 of file JsonSerializer.cs.

1805 {
1806 JsonSerializerOptions options = jsonTypeInfo.Options;
1807 JsonWriterOptions writerOptions = options.GetWriterOptions();
1808 using PooledByteBufferWriter pooledByteBufferWriter = new PooledByteBufferWriter(options.DefaultBufferSize);
1809 using Utf8JsonWriter writer = new Utf8JsonWriter(pooledByteBufferWriter, writerOptions);
1810 WriteStack state = default(WriteStack);
1812 bool flag;
1813 do
1814 {
1816 flag = WriteCore(jsonConverter, writer, in value, options, ref state);
1817 pooledByteBufferWriter.WriteToStream(utf8Json);
1819 }
1820 while (!flag);
1821 }

References System.Collections.Generic.Dictionary< TKey, TValue >.Clear(), System.Text.Json.Dictionary, System.Collections.Generic.Dictionary< TKey, TValue >.Initialize(), System.options, System.state, System.value, and System.writer.