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

◆ Flush()

void System.Text.Json.Utf8JsonWriter.Flush ( )
inline

Definition at line 134 of file Utf8JsonWriter.cs.

135 {
137 _memory = default(Memory<byte>);
138 if (_stream != null)
139 {
140 if (BytesPending != 0)
141 {
143 BytesPending = 0;
147 }
148 _stream.Flush();
149 }
150 else if (BytesPending != 0)
151 {
154 BytesPending = 0;
155 }
156 }
void Write(byte[] buffer, int offset, int count)
IBufferWriter< byte > _output
ArrayBufferWriter< byte > _arrayBufferWriter

References System.Text.Json.Utf8JsonWriter._arrayBufferWriter, System.Text.Json.Utf8JsonWriter._memory, System.Text.Json.Utf8JsonWriter._output, System.Text.Json.Utf8JsonWriter._stream, System.Buffers.ArrayBufferWriter< T >.Advance(), System.Buffers.IBufferWriter< T >.Advance(), System.Text.Json.Utf8JsonWriter.BytesCommitted, System.Text.Json.Utf8JsonWriter.BytesPending, System.Text.Json.Utf8JsonWriter.CheckNotDisposed(), System.Buffers.ArrayBufferWriter< T >.Clear(), System.IO.Stream.Flush(), System.IO.Stream.Write(), System.Buffers.ArrayBufferWriter< T >.WrittenCount, and System.Buffers.ArrayBufferWriter< T >.WrittenSpan.

Referenced by System.Text.Json.Utf8JsonWriter.Dispose().