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

◆ WriteCDataSectionAsync()

async Task System.Xml.XmlUtf8RawTextWriter.WriteCDataSectionAsync ( string text)
inlineprotectedinherited

Definition at line 2807 of file XmlUtf8RawTextWriter.cs.

2808 {
2809 if (text.Length == 0)
2810 {
2811 if (_bufPos >= _bufLen)
2812 {
2814 }
2815 return;
2816 }
2817 int curIndex = 0;
2818 int leftCount = text.Length;
2819 bool needWriteNewLine = false;
2820 int writeLen;
2821 do
2822 {
2824 curIndex += writeLen;
2826 if (needWriteNewLine)
2827 {
2829 curIndex++;
2830 leftCount--;
2831 }
2832 else if (writeLen >= 0)
2833 {
2835 }
2836 }
2837 while (writeLen >= 0 || needWriteNewLine);
2838 }
new ConfiguredTaskAwaitable< TResult > ConfigureAwait(bool continueOnCapturedContext)
Definition Task.cs:226
unsafe int WriteCDataSectionNoFlush(string text, int index, int count, out bool needWriteNewLine)

References System.Xml.XmlUtf8RawTextWriter._bufLen, System.Xml.XmlUtf8RawTextWriter._bufPos, System.Xml.XmlUtf8RawTextWriter._newLineChars, System.Threading.Tasks.Task< TResult >.ConfigureAwait(), System.Xml.Dictionary, System.Xml.XmlUtf8RawTextWriter.FlushBufferAsync(), System.Xml.XmlUtf8RawTextWriter.RawTextAsync(), System.text, and System.Xml.XmlUtf8RawTextWriter.WriteCDataSectionNoFlush().

Referenced by System.Xml.XmlUtf8RawTextWriter.WriteCDataAsync().