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

◆ _WriteElementTextBlockAsync()

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

Definition at line 2531 of file XmlEncodedRawTextWriter.cs.

2532 {
2533 bool needWriteNewLine = false;
2534 if (!newLine)
2535 {
2537 }
2538 else
2539 {
2541 curIndex++;
2542 leftCount--;
2543 }
2544 int writeLen;
2545 do
2546 {
2548 curIndex += writeLen;
2550 if (needWriteNewLine)
2551 {
2553 curIndex++;
2554 leftCount--;
2555 }
2556 else if (writeLen >= 0)
2557 {
2559 }
2560 }
2561 while (writeLen >= 0 || needWriteNewLine);
2562 }
new ConfiguredTaskAwaitable< TResult > ConfigureAwait(bool continueOnCapturedContext)
Definition Task.cs:226
unsafe int WriteElementTextBlockNoFlush(char *pSrc, char *pSrcEnd, out bool needWriteNewLine)

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

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