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

◆ WriteCommentOrPiAsync()

async Task System.Xml.XmlUtf8RawTextWriter.WriteCommentOrPiAsync ( string text,
int stopChar )
inlineprotectedinherited

Definition at line 2652 of file XmlUtf8RawTextWriter.cs.

2653 {
2654 if (text.Length == 0)
2655 {
2656 if (_bufPos >= _bufLen)
2657 {
2659 }
2660 return;
2661 }
2662 int curIndex = 0;
2663 int leftCount = text.Length;
2664 bool needWriteNewLine = false;
2665 int writeLen;
2666 do
2667 {
2669 curIndex += writeLen;
2671 if (needWriteNewLine)
2672 {
2674 curIndex++;
2675 leftCount--;
2676 }
2677 else if (writeLen >= 0)
2678 {
2680 }
2681 }
2682 while (writeLen >= 0 || needWriteNewLine);
2683 }
new ConfiguredTaskAwaitable< TResult > ConfigureAwait(bool continueOnCapturedContext)
Definition Task.cs:226
unsafe int WriteCommentOrPiNoFlush(string text, int index, int count, int stopChar, 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.WriteCommentOrPiNoFlush().

Referenced by System.Xml.XmlUtf8RawTextWriter.WriteCommentAsync(), and System.Xml.XmlUtf8RawTextWriter.WriteProcessingInstructionAsync().