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

◆ WriteCDataSectionAsync()

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

Definition at line 3144 of file XmlEncodedRawTextWriter.cs.

3145 {
3146 if (text.Length == 0)
3147 {
3148 if (_bufPos >= _bufLen)
3149 {
3151 }
3152 return;
3153 }
3154 int curIndex = 0;
3155 int leftCount = text.Length;
3156 bool needWriteNewLine = false;
3157 int writeLen;
3158 do
3159 {
3161 curIndex += writeLen;
3163 if (needWriteNewLine)
3164 {
3166 curIndex++;
3167 leftCount--;
3168 }
3169 else if (writeLen >= 0)
3170 {
3172 }
3173 }
3174 while (writeLen >= 0 || needWriteNewLine);
3175 }
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.XmlEncodedRawTextWriter._bufLen, System.Xml.XmlEncodedRawTextWriter._bufPos, System.Xml.XmlEncodedRawTextWriter._newLineChars, System.Threading.Tasks.Task< TResult >.ConfigureAwait(), System.Xml.Dictionary, System.Xml.XmlEncodedRawTextWriter.FlushBufferAsync(), System.Xml.XmlEncodedRawTextWriter.RawTextAsync(), System.text, and System.Xml.XmlEncodedRawTextWriter.WriteCDataSectionNoFlush().

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