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

◆ FlushBufferAsync()

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

Definition at line 2081 of file XmlEncodedRawTextWriter.cs.

2082 {
2083 _ = 1;
2084 try
2085 {
2086 if (_writeToNull)
2087 {
2088 return;
2089 }
2090 if (_stream != null)
2091 {
2093 {
2095 if (((uint)_lastMarkPos & (true ? 1u : 0u)) != 0)
2096 {
2097 _textContentMarks[1] = 1;
2098 _lastMarkPos = 1;
2099 }
2100 else
2101 {
2102 _lastMarkPos = 0;
2103 }
2104 }
2106 }
2107 else if (_bufPos - 1 > 0)
2108 {
2110 }
2111 }
2112 catch
2113 {
2114 _writeToNull = true;
2115 throw;
2116 }
2117 finally
2118 {
2119 _bufChars[0] = _bufChars[_bufPos - 1];
2120 _textPos = ((_textPos == _bufPos) ? 1 : 0);
2121 _attrEndPos = ((_attrEndPos == _bufPos) ? 1 : 0);
2122 _contentPos = 0;
2123 _cdataPos = 0;
2124 _bufPos = 1;
2125 }
2126 }
virtual Task WriteAsync(char value)
new ConfiguredTaskAwaitable< TResult > ConfigureAwait(bool continueOnCapturedContext)
Definition Task.cs:226
void Reset(int[] textContentMarks, int endMarkPos)
readonly CharEntityEncoderFallback _charEntityFallback
async Task EncodeCharsAsync(int startOffset, int endOffset, bool writeAllToStream)

References System.Xml.XmlEncodedRawTextWriter._attrEndPos, System.Xml.XmlEncodedRawTextWriter._bufChars, System.Xml.XmlEncodedRawTextWriter._bufPos, System.Xml.XmlEncodedRawTextWriter._cdataPos, System.Xml.XmlEncodedRawTextWriter._charEntityFallback, System.Xml.XmlEncodedRawTextWriter._contentPos, System.Xml.XmlEncodedRawTextWriter._lastMarkPos, System.Xml.XmlEncodedRawTextWriter._stream, System.Xml.XmlEncodedRawTextWriter._textContentMarks, System.Xml.XmlEncodedRawTextWriter._textPos, System.Xml.XmlEncodedRawTextWriter._trackTextContent, System.Xml.XmlEncodedRawTextWriter._writer, System.Xml.XmlEncodedRawTextWriter._writeToNull, System.Xml.Dictionary, System.Xml.XmlEncodedRawTextWriter.EncodeCharsAsync(), System.Xml.CharEntityEncoderFallback.Reset(), and System.IO.TextWriter.WriteAsync().

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