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

◆ FlushBufferAsync()

virtual async Task System.Xml.XmlUtf8RawTextWriter.FlushBufferAsync ( )
inlineprotectedvirtualinherited

Definition at line 1803 of file XmlUtf8RawTextWriter.cs.

1804 {
1805 try
1806 {
1807 if (!_writeToNull && _bufPos - 1 > 0)
1808 {
1810 }
1811 }
1812 catch
1813 {
1814 _writeToNull = true;
1815 throw;
1816 }
1817 finally
1818 {
1819 _bufBytes[0] = _bufBytes[_bufPos - 1];
1820 if (IsSurrogateByte(_bufBytes[0]))
1821 {
1823 _bufBytes[2] = _bufBytes[_bufPos + 1];
1824 _bufBytes[3] = _bufBytes[_bufPos + 2];
1825 }
1826 _textPos = ((_textPos == _bufPos) ? 1 : 0);
1827 _attrEndPos = ((_attrEndPos == _bufPos) ? 1 : 0);
1828 _contentPos = 0;
1829 _cdataPos = 0;
1830 _bufPos = 1;
1831 }
1832 }
Task WriteAsync(byte[] buffer, int offset, int count)
Definition Stream.cs:914
new ConfiguredTaskAwaitable< TResult > ConfigureAwait(bool continueOnCapturedContext)
Definition Task.cs:226

References System.Xml.XmlUtf8RawTextWriter._attrEndPos, System.Xml.XmlUtf8RawTextWriter._bufBytes, System.Xml.XmlUtf8RawTextWriter._bufPos, System.Xml.XmlUtf8RawTextWriter._cdataPos, System.Xml.XmlUtf8RawTextWriter._contentPos, System.Xml.XmlUtf8RawTextWriter._stream, System.Xml.XmlUtf8RawTextWriter._textPos, System.Xml.XmlUtf8RawTextWriter._writeToNull, System.Threading.Tasks.Task< TResult >.ConfigureAwait(), System.Xml.Dictionary, System.Xml.XmlUtf8RawTextWriter.IsSurrogateByte(), and System.IO.Stream.WriteAsync().

Referenced by System.Xml.XmlUtf8RawTextWriter._RawTextAsync(), System.Xml.XmlUtf8RawTextWriter._WriteAttributeTextBlockAsync(), System.Xml.XmlUtf8RawTextWriter._WriteElementTextBlockAsync(), System.Xml.XmlUtf8RawTextWriter.DisposeAsyncCore(), System.Xml.XmlUtf8RawTextWriter.FlushAsync(), System.Xml.XmlUtf8RawTextWriter.WriteAttributeTextBlockAsync(), System.Xml.XmlUtf8RawTextWriter.WriteCDataSectionAsync(), System.Xml.XmlUtf8RawTextWriter.WriteCharEntityAsync(), System.Xml.XmlUtf8RawTextWriter.WriteCommentOrPiAsync(), System.Xml.XmlUtf8RawTextWriter.WriteElementTextBlockAsync(), System.Xml.XmlUtf8RawTextWriter.WriteEntityRefAsync(), System.Xml.XmlUtf8RawTextWriter.WriteRawWithCharCheckingAsync(), and System.Xml.XmlUtf8RawTextWriter.WriteRawWithCharCheckingAsync().