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

◆ ParseTextAsync_ReadData()

async Task<(int, int, int, bool)> System.Xml.XmlTextReaderImpl.ParseTextAsync_ReadData ( int outOrChars,
char[] chars,
int pos,
int rcount,
int rpos,
int orChars,
char c )
inlineprivate

Definition at line 11337 of file XmlTextReaderImpl.cs.

11338 {
11339 if (pos > _ps.charPos)
11340 {
11341 _lastParseTextState = new ParseTextState(outOrChars, chars, pos, rcount, rpos, orChars, c);
11342 _parseText_NextFunction = ParseTextFunction.PartialValue;
11344 }
11345 if (await ReadDataAsync().ConfigureAwait(continueOnCapturedContext: false) == 0)
11346 {
11347 if (_ps.charsUsed - _ps.charPos > 0)
11348 {
11349 if (_ps.chars[_ps.charPos] != '\r' && _ps.chars[_ps.charPos] != ']')
11350 {
11352 }
11353 }
11354 else
11355 {
11356 if (!InEntity)
11357 {
11358 _lastParseTextState = new ParseTextState(outOrChars, chars, pos, rcount, rpos, orChars, c);
11359 _parseText_NextFunction = ParseTextFunction.NoValue;
11361 }
11363 {
11365 _parsingFunction = ParsingFunction.ReportEndEntity;
11366 _lastParseTextState = new ParseTextState(outOrChars, chars, pos, rcount, rpos, orChars, c);
11367 _parseText_NextFunction = ParseTextFunction.NoValue;
11369 }
11370 }
11371 }
11372 pos = _ps.charPos;
11373 chars = _ps.chars;
11374 _lastParseTextState = new ParseTextState(outOrChars, chars, pos, rcount, rpos, orChars, c);
11375 _parseText_NextFunction = ParseTextFunction.ParseText;
11377 }
static string Xml_UnexpectedEOF1
Definition SR.cs:38
Definition SR.cs:7
readonly Task<(int, int, int, bool)> _parseText_dummyTask
bool HandleEntityEnd(bool checkEntityNesting)
ParseTextFunction _parseText_NextFunction
void Throw(int pos, string res, string arg)

References System.Xml.XmlTextReaderImpl._lastParseTextState, System.Xml.XmlTextReaderImpl._nextParsingFunction, System.Xml.XmlTextReaderImpl._parseText_dummyTask, System.Xml.XmlTextReaderImpl._parseText_NextFunction, System.Xml.XmlTextReaderImpl._parsingFunction, System.Xml.XmlTextReaderImpl._ps, System.Xml.XmlTextReaderImpl.ParsingState.charPos, System.chars, System.Xml.XmlTextReaderImpl.ParsingState.chars, System.Xml.XmlTextReaderImpl.ParsingState.charsUsed, System.Xml.XmlTextReaderImpl.HandleEntityEnd(), System.Xml.XmlTextReaderImpl.ReadDataAsync(), System.Threading.Tasks.Task< TResult >.Result, System.Xml.XmlTextReaderImpl.Throw(), and System.SR.Xml_UnexpectedEOF1.

Referenced by System.Xml.XmlTextReaderImpl.ParseTextAsync(), and System.Xml.XmlTextReaderImpl.ParseTextAsync_AsyncFunc().