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

◆ WriteCommentOrPiAsync()

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

Definition at line 2988 of file XmlEncodedRawTextWriter.cs.

2989 {
2990 if (text.Length == 0)
2991 {
2992 if (_bufPos >= _bufLen)
2993 {
2995 }
2996 return;
2997 }
2998 int curIndex = 0;
2999 int leftCount = text.Length;
3000 bool needWriteNewLine = false;
3001 int writeLen;
3002 do
3003 {
3005 curIndex += writeLen;
3007 if (needWriteNewLine)
3008 {
3010 curIndex++;
3011 leftCount--;
3012 }
3013 else if (writeLen >= 0)
3014 {
3016 }
3017 }
3018 while (writeLen >= 0 || needWriteNewLine);
3019 }
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.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.WriteCommentOrPiNoFlush().

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