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

◆ RawTextAsync() [2/2]

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

Definition at line 2642 of file XmlEncodedRawTextWriter.cs.

2643 {
2644 int num = RawTextNoFlush(text1, 0, text1.Length);
2645 if (num >= 0)
2646 {
2647 return _RawTextAsync(text1, num, text1.Length - num, text2, text3, text4);
2648 }
2649 if (text2 != null)
2650 {
2651 num = RawTextNoFlush(text2, 0, text2.Length);
2652 if (num >= 0)
2653 {
2654 return _RawTextAsync(text2, num, text2.Length - num, text3, text4);
2655 }
2656 }
2657 if (text3 != null)
2658 {
2659 num = RawTextNoFlush(text3, 0, text3.Length);
2660 if (num >= 0)
2661 {
2662 return _RawTextAsync(text3, num, text3.Length - num, text4);
2663 }
2664 }
2665 if (text4 != null)
2666 {
2667 num = RawTextNoFlush(text4, 0, text4.Length);
2668 if (num >= 0)
2669 {
2670 return _RawTextAsync(text4, num, text4.Length - num);
2671 }
2672 }
2673 return Task.CompletedTask;
2674 }
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.XmlEncodedRawTextWriter._RawTextAsync(), System.Threading.Tasks.Task< TResult >.CompletedTask, System.Xml.Dictionary, and System.Xml.XmlEncodedRawTextWriter.RawTextNoFlush().