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

◆ _WriteElementTextBlockAsync()

async Task System.Xml.XmlUtf8RawTextWriter._WriteElementTextBlockAsync ( bool newLine,
string text,
int curIndex,
int leftCount )
inlineprivateinherited

Definition at line 2198 of file XmlUtf8RawTextWriter.cs.

2199 {
2200 bool needWriteNewLine = false;
2201 if (!newLine)
2202 {
2204 }
2205 else
2206 {
2208 curIndex++;
2209 leftCount--;
2210 }
2211 int writeLen;
2212 do
2213 {
2215 curIndex += writeLen;
2217 if (needWriteNewLine)
2218 {
2220 curIndex++;
2221 leftCount--;
2222 }
2223 else if (writeLen >= 0)
2224 {
2226 }
2227 }
2228 while (writeLen >= 0 || needWriteNewLine);
2229 }
new ConfiguredTaskAwaitable< TResult > ConfigureAwait(bool continueOnCapturedContext)
Definition Task.cs:226
unsafe int WriteElementTextBlockNoFlush(char *pSrc, char *pSrcEnd, out bool needWriteNewLine)

References 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.WriteElementTextBlockNoFlush().

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