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

◆ ParseTextAsync_Surrogate()

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

Definition at line 11303 of file XmlTextReaderImpl.cs.

11304 {
11305 char c2 = chars[pos];
11306 if (XmlCharType.IsHighSurrogate(c2))
11307 {
11308 if (pos + 1 == _ps.charsUsed)
11309 {
11310 _lastParseTextState = new ParseTextState(outOrChars, chars, pos, rcount, rpos, orChars, c);
11311 _parseText_NextFunction = ParseTextFunction.ReadData;
11313 }
11314 pos++;
11315 if (XmlCharType.IsLowSurrogate(chars[pos]))
11316 {
11317 pos++;
11318 orChars |= c2;
11319 _lastParseTextState = new ParseTextState(outOrChars, chars, pos, rcount, rpos, orChars, c);
11320 _parseText_NextFunction = ParseTextFunction.ParseText;
11322 }
11323 }
11324 int offset = pos - _ps.charPos;
11326 {
11327 chars = _ps.chars;
11328 pos = _ps.charPos + offset;
11329 _lastParseTextState = new ParseTextState(outOrChars, chars, pos, rcount, rpos, orChars, c);
11330 _parseText_NextFunction = ParseTextFunction.PartialValue;
11332 }
11335 }
static string Xml_InternalError
Definition SR.cs:54
Definition SR.cs:7
void ThrowInvalidChar(char[] data, int length, int invCharPos)
readonly Task<(int, int, int, bool)> _parseText_dummyTask
async Task< bool > ZeroEndingStreamAsync(int pos)
ParseTextFunction _parseText_NextFunction

References System.Xml.XmlTextReaderImpl._lastParseTextState, System.Xml.XmlTextReaderImpl._parseText_dummyTask, System.Xml.XmlTextReaderImpl._parseText_NextFunction, System.Xml.XmlTextReaderImpl._ps, System.Xml.XmlTextReaderImpl.ParsingState.charPos, System.chars, System.Xml.XmlTextReaderImpl.ParsingState.chars, System.Xml.XmlTextReaderImpl.ParsingState.charsUsed, System.Xml.Dictionary, System.Xml.XmlCharType.IsHighSurrogate(), System.Xml.XmlCharType.IsLowSurrogate(), System.offset, System.Threading.Tasks.Task< TResult >.Result, System.Xml.XmlTextReaderImpl.ThrowInvalidChar(), System.SR.Xml_InternalError, System.Xml.XmlException, and System.Xml.XmlTextReaderImpl.ZeroEndingStreamAsync().

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