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

◆ RawTextAsync() [2/2]

Task System.Xml.XmlUtf8RawTextWriter.RawTextAsync ( string text1,
string text2 = null,
string text3 = null,
string text4 = null )
inlineprotectedinherited

Definition at line 2308 of file XmlUtf8RawTextWriter.cs.

2309 {
2310 int num = RawTextNoFlush(text1, 0, text1.Length);
2311 if (num >= 0)
2312 {
2313 return _RawTextAsync(text1, num, text1.Length - num, text2, text3, text4);
2314 }
2315 if (text2 != null)
2316 {
2317 num = RawTextNoFlush(text2, 0, text2.Length);
2318 if (num >= 0)
2319 {
2320 return _RawTextAsync(text2, num, text2.Length - num, text3, text4);
2321 }
2322 }
2323 if (text3 != null)
2324 {
2325 num = RawTextNoFlush(text3, 0, text3.Length);
2326 if (num >= 0)
2327 {
2328 return _RawTextAsync(text3, num, text3.Length - num, text4);
2329 }
2330 }
2331 if (text4 != null)
2332 {
2333 num = RawTextNoFlush(text4, 0, text4.Length);
2334 if (num >= 0)
2335 {
2336 return _RawTextAsync(text4, num, text4.Length - num);
2337 }
2338 }
2339 return Task.CompletedTask;
2340 }
static Task CompletedTask
Definition Task.cs:1120
async Task _RawTextAsync(string text1, int curIndex1, int leftCount1, string text2=null, string text3=null, string text4=null)
unsafe int RawTextNoFlush(char *pSrcBegin, char *pSrcEnd)

References System.Xml.XmlUtf8RawTextWriter._RawTextAsync(), System.Threading.Tasks.Task< TResult >.CompletedTask, System.Xml.Dictionary, and System.Xml.XmlUtf8RawTextWriter.RawTextNoFlush().