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

◆ ParseTextAsync() [2/3]

ValueTask<(int, int, int, bool)> System.Xml.XmlTextReaderImpl.ParseTextAsync ( int outOrChars)
inlineprivate

Definition at line 11077 of file XmlTextReaderImpl.cs.

11078 {
11079 Task<(int, int, int, bool)> task = ParseTextAsync(outOrChars, _ps.chars, _ps.charPos, 0, -1, outOrChars, '\0');
11080 while (task.IsSuccess())
11081 {
11082 outOrChars = _lastParseTextState.outOrChars;
11084 int pos = _lastParseTextState.pos;
11085 int rcount = _lastParseTextState.rcount;
11086 int rpos = _lastParseTextState.rpos;
11087 int orChars = _lastParseTextState.orChars;
11088 char c = _lastParseTextState.c;
11090 {
11091 case ParseTextFunction.ParseText:
11092 task = ParseTextAsync(outOrChars, chars, pos, rcount, rpos, orChars, c);
11093 break;
11094 case ParseTextFunction.Entity:
11095 task = ParseTextAsync_ParseEntity(outOrChars, chars, pos, rcount, rpos, orChars, c);
11096 break;
11097 case ParseTextFunction.ReadData:
11098 task = ParseTextAsync_ReadData(outOrChars, chars, pos, rcount, rpos, orChars, c);
11099 break;
11100 case ParseTextFunction.Surrogate:
11101 task = ParseTextAsync_Surrogate(outOrChars, chars, pos, rcount, rpos, orChars, c);
11102 break;
11103 case ParseTextFunction.NoValue:
11104 return new ValueTask<(int, int, int, bool)>(ParseText_NoValue(outOrChars, pos));
11105 case ParseTextFunction.PartialValue:
11106 return new ValueTask<(int, int, int, bool)>(ParseText_PartialValue(pos, rcount, rpos, orChars, c));
11107 }
11108 }
11110 }
async Task<(int, int, int, bool)> ParseTextAsync_AsyncFunc(Task<(int, int, int, bool)> task)
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._ps, System.Xml.XmlTextReaderImpl.ParseTextState.c, System.Xml.XmlTextReaderImpl.ParsingState.charPos, System.chars, System.Xml.XmlTextReaderImpl.ParseTextState.chars, System.Xml.XmlTextReaderImpl.ParsingState.chars, System.Xml.Dictionary, System.Xml.XmlTextReaderImpl.int, 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_AsyncFunc(), 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.