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

◆ ZeroEndingStreamAsync()

async Task< bool > System.Xml.XmlTextReaderImpl.ZeroEndingStreamAsync ( int pos)
inlineprivate

Definition at line 12791 of file XmlTextReaderImpl.cs.

12792 {
12793 bool flag = _v1Compat && pos == _ps.charsUsed - 1 && _ps.chars[pos] == '\0';
12794 bool flag2 = flag;
12795 if (flag2)
12796 {
12797 flag2 = await ReadDataAsync().ConfigureAwait(continueOnCapturedContext: false) == 0;
12798 }
12799 if (flag2 && _ps.isStreamEof)
12800 {
12801 _ps.charsUsed--;
12802 return true;
12803 }
12804 return false;
12805 }

References System.Xml.XmlTextReaderImpl._ps, System.Xml.XmlTextReaderImpl._v1Compat, System.Xml.XmlTextReaderImpl.ParsingState.chars, System.Xml.XmlTextReaderImpl.ParsingState.charsUsed, System.Xml.Dictionary, System.Xml.XmlTextReaderImpl.ParsingState.isStreamEof, and System.Xml.XmlTextReaderImpl.ReadDataAsync().

Referenced by System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespaceAsync(), and System.Xml.XmlTextReaderImpl.ParseTextAsync_Surrogate().