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

◆ FlushAsync()

async Task System.Text.Json.Utf8JsonWriter.FlushAsync ( CancellationToken cancellationToken = default(CancellationToken))
inline

Definition at line 182 of file Utf8JsonWriter.cs.

183 {
185 _memory = default(Memory<byte>);
186 if (_stream != null)
187 {
188 if (BytesPending != 0)
189 {
191 BytesPending = 0;
195 }
197 }
198 else if (BytesPending != 0)
199 {
202 BytesPending = 0;
203 }
204 }
Task FlushAsync()
Definition Stream.cs:669
Task WriteAsync(byte[] buffer, int offset, int count)
Definition Stream.cs:914
IBufferWriter< byte > _output
ArrayBufferWriter< byte > _arrayBufferWriter
new ConfiguredTaskAwaitable< TResult > ConfigureAwait(bool continueOnCapturedContext)
Definition Task.cs:226

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.cancellationToken, System.Text.Json.Utf8JsonWriter.CheckNotDisposed(), System.Buffers.ArrayBufferWriter< T >.Clear(), System.Threading.Tasks.Task< TResult >.ConfigureAwait(), System.Text.Json.Dictionary, System.IO.Stream.FlushAsync(), System.IO.Stream.WriteAsync(), System.Buffers.ArrayBufferWriter< T >.WrittenCount, and System.Buffers.ArrayBufferWriter< T >.WrittenMemory.

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