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

◆ WriteElementTextBlockAsync() [1/2]

async Task System.Xml.XmlUtf8RawTextWriter.WriteElementTextBlockAsync ( char[] chars,
int index,
int count )
inlineprotectedinherited

Definition at line 2153 of file XmlUtf8RawTextWriter.cs.

2154 {
2155 int curIndex = index;
2156 int leftCount = count;
2157 bool needWriteNewLine = false;
2158 int writeLen;
2159 do
2160 {
2162 curIndex += writeLen;
2164 if (needWriteNewLine)
2165 {
2167 curIndex++;
2168 leftCount--;
2169 }
2170 else if (writeLen >= 0)
2171 {
2173 }
2174 }
2175 while (writeLen >= 0 || needWriteNewLine);
2176 }
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.chars, System.Threading.Tasks.Task< TResult >.ConfigureAwait(), System.count, System.Xml.Dictionary, System.Xml.XmlUtf8RawTextWriter.FlushBufferAsync(), System.index, System.Xml.XmlUtf8RawTextWriter.RawTextAsync(), and System.Xml.XmlUtf8RawTextWriter.WriteElementTextBlockNoFlush().

Referenced by System.Xml.XmlUtf8RawTextWriter.WriteCharsAsync(), System.Xml.XmlUtf8RawTextWriter.WriteStringAsync(), and System.Xml.XmlUtf8RawTextWriter.WriteWhitespaceAsync().