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

◆ WriteAsyncInternal() [1/2]

async Task System.IO.StreamWriter.WriteAsyncInternal ( char value,
bool appendNewLine )
inlineprivate

Definition at line 583 of file StreamWriter.cs.

584 {
585 if (_charPos == _charLen)
586 {
587 await FlushAsyncInternal(flushStream: false, flushEncoder: false).ConfigureAwait(continueOnCapturedContext: false);
588 }
590 if (appendNewLine)
591 {
592 for (int i = 0; i < CoreNewLine.Length; i++)
593 {
594 if (_charPos == _charLen)
595 {
596 await FlushAsyncInternal(flushStream: false, flushEncoder: false).ConfigureAwait(continueOnCapturedContext: false);
597 }
599 }
600 }
601 if (_autoFlush)
602 {
603 await FlushAsyncInternal(flushStream: true, flushEncoder: false).ConfigureAwait(continueOnCapturedContext: false);
604 }
605 }
readonly char[] _charBuffer
Task FlushAsyncInternal(bool flushStream, bool flushEncoder, CancellationToken cancellationToken=default(CancellationToken))

References System.IO.StreamWriter._autoFlush, System.IO.StreamWriter._charBuffer, System.IO.StreamWriter._charLen, System.IO.StreamWriter._charPos, System.IO.TextWriter.CoreNewLine, System.IO.StreamWriter.FlushAsyncInternal(), and System.value.

Referenced by System.IO.StreamWriter.WriteAsync(), System.IO.StreamWriter.WriteAsync(), System.IO.StreamWriter.WriteAsync(), System.IO.StreamWriter.WriteAsync(), System.IO.StreamWriter.WriteLineAsync(), System.IO.StreamWriter.WriteLineAsync(), System.IO.StreamWriter.WriteLineAsync(), System.IO.StreamWriter.WriteLineAsync(), and System.IO.StreamWriter.WriteLineAsync().