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

◆ ParseTextAsync_AsyncFunc()

async Task<(int, int, int, bool)> System.Xml.XmlTextReaderImpl.ParseTextAsync_AsyncFunc ( Task<(int, int, int, bool)> task)
inlineprivate

Definition at line 11112 of file XmlTextReaderImpl.cs.

11113 {
11114 while (true)
11115 {
11116 await task.ConfigureAwait(continueOnCapturedContext: false);
11117 int outOrChars = _lastParseTextState.outOrChars;
11119 int pos = _lastParseTextState.pos;
11120 int rcount = _lastParseTextState.rcount;
11121 int rpos = _lastParseTextState.rpos;
11122 int orChars = _lastParseTextState.orChars;
11123 char c = _lastParseTextState.c;
11125 {
11126 case ParseTextFunction.ParseText:
11127 task = ParseTextAsync(outOrChars, chars, pos, rcount, rpos, orChars, c);
11128 break;
11129 case ParseTextFunction.Entity:
11130 task = ParseTextAsync_ParseEntity(outOrChars, chars, pos, rcount, rpos, orChars, c);
11131 break;
11132 case ParseTextFunction.ReadData:
11133 task = ParseTextAsync_ReadData(outOrChars, chars, pos, rcount, rpos, orChars, c);
11134 break;
11135 case ParseTextFunction.Surrogate:
11136 task = ParseTextAsync_Surrogate(outOrChars, chars, pos, rcount, rpos, orChars, c);
11137 break;
11138 case ParseTextFunction.NoValue:
11139 return ParseText_NoValue(outOrChars, pos);
11140 case ParseTextFunction.PartialValue:
11141 return ParseText_PartialValue(pos, rcount, rpos, orChars, c);
11142 }
11143 }
11144 }
async Task<(int, int, int, bool)> ParseTextAsync_Surrogate(int outOrChars, char[] chars, int pos, int rcount, int rpos, int orChars, char c)
async Task<(int, int, int, bool)> ParseTextAsync_ParseEntity(int outOrChars, char[] chars, int pos, int rcount, int rpos, int orChars, char c)
bool ParseText_PartialValue(int pos, int rcount, int rpos, int orChars, char c)
ParseTextFunction _parseText_NextFunction
bool ParseText_NoValue(int outOrChars, int pos)
async Task<(int, int, int, bool)> ParseTextAsync_ReadData(int outOrChars, char[] chars, int pos, int rcount, int rpos, int orChars, char c)

References System.Xml.XmlTextReaderImpl._lastParseTextState, System.Xml.XmlTextReaderImpl._parseText_NextFunction, System.Xml.XmlTextReaderImpl.ParseTextState.c, System.chars, System.Xml.XmlTextReaderImpl.ParseTextState.chars, System.Xml.XmlTextReaderImpl.ParseTextState.orChars, System.Xml.XmlTextReaderImpl.ParseTextState.outOrChars, System.Xml.XmlTextReaderImpl.ParseText_NoValue(), System.Xml.XmlTextReaderImpl.ParseText_PartialValue(), System.Xml.XmlTextReaderImpl.ParseTextAsync(), System.Xml.XmlTextReaderImpl.ParseTextAsync_ParseEntity(), System.Xml.XmlTextReaderImpl.ParseTextAsync_ReadData(), System.Xml.XmlTextReaderImpl.ParseTextAsync_Surrogate(), System.Xml.XmlTextReaderImpl.ParseTextState.pos, System.Xml.XmlTextReaderImpl.ParseTextState.rcount, System.Xml.XmlTextReaderImpl.ParseTextState.rpos, and System.task.

Referenced by System.Xml.XmlTextReaderImpl.ParseTextAsync().