11 writes to chars
System.Private.Xml (11)
System\Xml\Core\XmlTextReaderImpl.cs (6)
2878_ps.chars = new char[bufferSize + 1]; 2928_ps.chars = new char[XmlReader.AsyncBufferSize + 1]; 2932_ps.chars = new char[XmlReader.DefaultBufferSize + 1]; 2955_ps.chars = new char[len + 1]; 3356_ps.chars = newChars; 3407_ps.chars = newChars;
System\Xml\Core\XmlTextReaderImplAsync.cs (4)
906_ps.chars = new char[bufferSize + 1]; 964_ps.chars = new char[bufferSize + 1]; 1045_ps.chars = newChars; 1095_ps.chars = newChars;
System\Xml\Core\XmlTextReaderImplHelpers.cs (1)
67chars = null!;
345 references to chars
System.Private.Xml (345)
System\Xml\Core\XmlTextReaderImpl.cs (220)
1867Debug.Assert(_ps.chars != null); 1868BlockCopyChars(_ps.chars, startPos, buffer, (index + readCount), copyCount); 1891Debug.Assert(_ps.chars != null); 1892_curNode.SetValue(_ps.chars, startPos, endPos - startPos); 2178_stringBuilder.Append(_ps.chars, _incReadLeftStartPos, _incReadLeftEndPos - _incReadLeftStartPos); 2191_stringBuilder.Append(_ps.chars, _ps.charPos, _ps.charsUsed - _ps.charPos); 2384return _ps.chars; 2876if (_ps.chars == null || _ps.chars.Length < bufferSize + 1) 2924if (_ps.chars == null) 2956str.CopyTo(0, _ps.chars, 0, str.Length); 2958_ps.chars[len] = (char)0; 3315Debug.Assert(_ps.chars != null); 3316_ps.bytePos += _ps.encoding.GetByteCount(_ps.chars, 0, _ps.charPos); 3341Debug.Assert(_ps.chars != null); 3346if (_ps.charsUsed == _ps.chars.Length - 1) 3354char[] newChars = new char[_ps.chars.Length * 2]; 3355BlockCopyChars(_ps.chars, 0, newChars, 0, _ps.chars.Length); 3374charsRead = _ps.chars.Length - _ps.charsUsed - 1; 3382int charsLen = _ps.chars.Length; 3398BlockCopyChars(_ps.chars, _ps.charPos, _ps.chars, 0, copyCharsCount); 3405char[] newChars = new char[_ps.chars.Length * 2]; 3406BlockCopyChars(_ps.chars, 0, newChars, 0, _ps.chars.Length); 3431charsRead = _ps.chars.Length - _ps.charsUsed - 1; 3465charsRead = _ps.textReader.Read(_ps.chars, _ps.charsUsed, _ps.chars.Length - _ps.charsUsed - 1); 3477Debug.Assert(_ps.charsUsed < _ps.chars.Length); 3481_ps.chars[_ps.charsUsed] = (char)0; 3489Debug.Assert(_ps.chars != null); 3490Debug.Assert(maxCharsCount <= _ps.chars.Length - _ps.charsUsed - 1); 3504_ps.decoder.Convert(_ps.bytes, _ps.bytePos, bytesCount, _ps.chars, _ps.charsUsed, maxCharsCount, false, out bytesCount, out charsCount, out completed); 3531Debug.Assert(_ps.chars != null); 3532_ps.decoder.Convert(_ps.bytes, _ps.bytePos + bytesDecoded, 1, _ps.chars, _ps.charsUsed + charsDecoded, 2, false, out bDec, out chDec, out completed); 3579Debug.Assert(_ps.chars != null); 3580BlockCopyChars(_ps.chars, sourcePos, _ps.chars, destPos, count); 3594if (!_ps.chars.AsSpan(_ps.charPos).StartsWith(XmlDeclarationBeginning) || 3595XmlCharType.IsNameSingleChar(_ps.chars![_ps.charPos + 5])) 3622if (_ps.chars[_ps.charPos] == '?') 3626if (_ps.chars[_ps.charPos + 1] == '>') 3692switch (_ps.chars.AsSpan(_ps.charPos, nameEndPos - _ps.charPos)) 3733sb.Append(_ps.chars, _ps.charPos, nameEndPos - _ps.charPos); 3737if (_ps.chars[_ps.charPos] != '=') 3740if (_ps.chars[_ps.charPos] != '=') 3748char quoteChar = _ps.chars[_ps.charPos]; 3752quoteChar = _ps.chars[_ps.charPos]; 3771chars = _ps.chars; 3777if (_ps.chars[pos] == quoteChar) 3784if (_ps.chars.AsSpan(_ps.charPos).StartsWith("1.0")) 3789attr.SetValue(_ps.chars, _ps.charPos, pos - _ps.charPos); 3795string badVersion = new string(_ps.chars, _ps.charPos, pos - _ps.charPos); 3800string encName = new string(_ps.chars, _ps.charPos, pos - _ps.charPos); 3810switch (_ps.chars.AsSpan(_ps.charPos, pos - _ps.charPos)) 3826attr.SetValue(_ps.chars, _ps.charPos, pos - _ps.charPos); 3895Debug.Assert(_ps.chars != null); 3896char[] chars = _ps.chars; 4120Debug.Assert(_ps.chars != null); 4121char[] chars = _ps.chars; 4294Debug.Assert(_ps.chars != null); 4295char[] chars = _ps.chars; 4356chars = _ps.chars; 4419chars = _ps.chars; 4545Debug.Assert(_ps.chars != null); 4546char[] chars = _ps.chars; 4573chars = _ps.chars; 4656Debug.Assert(_ps.chars != null); 4661args[3] = new string(_ps.chars, _ps.charPos, endPos - _ps.charPos); 4675Debug.Assert(_ps.chars != null); 4676char[] chars = _ps.chars; 4827chars = _ps.chars; 4833chars = _ps.chars; 4898chars = _ps.chars; 4930chars = _ps.chars; 5096Debug.Assert(_ps.chars != null); 5097char[] chars = _ps.chars; 5273chars = _ps.chars; 5310if (_ps.chars[_ps.charPos] != (char)0xD) 5346chars = _ps.chars; 5419Debug.Assert(_ps.chars != null); 5420_curNode.SetValueNode(nodeType, _ps.chars, startPos, endPos - startPos); 5433_stringBuilder.Append(_ps.chars, startPos, endPos - startPos); 5439_stringBuilder.Append(_ps.chars, startPos, endPos - startPos); 5464Debug.Assert(_ps.chars != null); 5465_curNode.SetValueNode(XmlNodeType.Text, _ps.chars, startPos, endPos - startPos); 5474_stringBuilder.Append(_ps.chars, startPos, endPos - startPos); 5481_stringBuilder.Append(_ps.chars, startPos, endPos - startPos); 5539Debug.Assert(_ps.chars != null); 5540char[] chars = _ps.chars; 5653if (!XmlCharType.IsWhiteSpace(_ps.chars[pos - 1])) 5662chars = _ps.chars; 5709ThrowInvalidChar(_ps.chars, _ps.charsUsed, _ps.charPos + offset); 5725if (_ps.chars[_ps.charPos] != (char)0xD && _ps.chars[_ps.charPos] != ']') 5749chars = _ps.chars; 5782_stringBuilder.Append(_ps.chars, startPos, endPos - startPos); 5784_stringBuilder.Append(_ps.chars, startPos, endPos - startPos); 5904Debug.Assert(_ps.chars != null); 5908if (_ps.chars[_ps.charPos] == '<' || _ps.charsUsed - _ps.charPos == 0 || ZeroEndingStream(_ps.charPos)) 5917if (_ps.chars[_ps.charPos] == '<' || _ps.charsUsed - _ps.charPos == 0 || ZeroEndingStream(_ps.charPos)) 5929if (XmlCharType.IsCharData(_ps.chars[_ps.charPos])) 5935ThrowInvalidChar(_ps.chars, _ps.charsUsed, _ps.charPos); 5942Debug.Assert(_ps.chars != null); 5943Debug.Assert(_ps.chars[_ps.charPos] == '&'); 5952Debug.Assert(_ps.chars != null); 5953Debug.Assert(_ps.chars[_ps.charPos] == '&'); 5964if (_ps.chars[_ps.charPos + 1] == '#') 6005if (_ps.chars[endPos] != ';') 6011string entityName = _nameTable.Add(_ps.chars, _ps.charPos, endPos - _ps.charPos); 6207Debug.Assert(_ps.chars != null); 6208string target = _nameTable.Add(_ps.chars, _ps.charPos, nameEndPos - _ps.charPos); 6229char ch = _ps.chars[_ps.charPos]; 6237if (ch != '?' || _ps.chars[_ps.charPos + 1] != '>') 6239Throw(SR.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(_ps.chars, _ps.charsUsed, _ps.charPos)); 6255_curNode.SetValue(_ps.chars, startPos, endPos - startPos); 6260piInDtdStringBuilder.Append(_ps.chars, startPos, endPos - startPos); 6283sb.Append(_ps.chars, startPos, endPos - startPos); 6285sb.Append(_ps.chars, startPos, endPos - startPos); 6308Debug.Assert(_ps.chars != null); 6310char[] chars = _ps.chars; 6480Debug.Assert(_ps.chars != null); 6481_curNode.SetValueNode(type, _ps.chars, startPos, endPos - startPos); 6487_stringBuilder.Append(_ps.chars, startPos, endPos - startPos); 6490_stringBuilder.Append(_ps.chars, startPos, endPos - startPos); 6513Debug.Assert(_ps.chars != null); 6515char[] chars = _ps.chars; 6681if (!_ps.chars.AsSpan(_ps.charPos).StartsWith("DOCTYPE")) 6686Debug.Assert(_ps.chars != null); 6687if (!XmlCharType.IsWhiteSpace(_ps.chars[_ps.charPos + 7])) 6751Debug.Assert(_ps.chars != null); 6752if (_ps.chars[_ps.charPos] == 'P') 6763if (!_ps.chars.AsSpan(_ps.charPos).StartsWith("PUBLIC")) 6789else if (_ps.chars[_ps.charPos] == 'S') 6800if (!_ps.chars.AsSpan(_ps.charPos).StartsWith("SYSTEM")) 6817else if (_ps.chars[_ps.charPos] != '[' && _ps.chars[_ps.charPos] != '>') 6823if (_ps.chars[_ps.charPos] == '[') 6830if (_ps.chars[_ps.charPos] != '>') 6835else if (_ps.chars[_ps.charPos] == '>') 6848Debug.Assert(_ps.chars != null); 6850char quoteChar = _ps.chars[_ps.charPos]; 6867Debug.Assert(_ps.chars != null); 6868char[] chars = _ps.chars; 7043if (_ps.chars[_ps.charPos] != (char)0xD) 7055chars = _ps.chars; 7064Debug.Assert(_ps.chars != null); 7065char[] chars = _ps.chars; 7120sb?.Append(_ps.chars, _ps.charPos, tmp2); 7133sb?.Append(_ps.chars, _ps.charPos, tmp3); 7144if (_ps.chars[_ps.charPos] != (char)0xD) 7152chars = _ps.chars; 7158Debug.Assert(_ps.chars != null); 7159Debug.Assert(_ps.chars[startPos] == '&'); 7160if (_ps.chars[startPos + 1] == '#') 7192Debug.Assert(_ps.chars != null); 7193Debug.Assert(_ps.chars[_ps.charPos] == '&'); 7213Debug.Assert(_ps.chars != null); 7214Debug.Assert(_ps.chars[startPos] == '&' && _ps.chars[startPos + 1] == '#'); 7222chars = _ps.chars; 7291Throw((_ps.chars[startPos + 2] == 'x') ? startPos + 3 : startPos + 2, SR.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(ch, '\0')); 7296internalSubsetBuilder?.Append(_ps.chars, _ps.charPos, pos - _ps.charPos + 1); 7317Throw((_ps.chars[startPos + 2] == 'x') ? startPos + 3 : startPos + 2, SR.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(high, low)); 7324internalSubsetBuilder?.Append(_ps.chars, _ps.charPos, pos - _ps.charPos + 1); 7355Debug.Assert(_ps.chars != null); 7356Debug.Assert(_ps.chars[_ps.charPos] == '&'); 7377Debug.Assert(_ps.chars != null); 7378Debug.Assert(_ps.chars[startPos] == '&'); 7379Debug.Assert(_ps.chars[startPos + 1] != '#'); 7382char[] chars = _ps.chars; 7490internalSubsetBuilder?.Append(_ps.chars, _ps.charPos, pos - _ps.charPos); 7491_ps.chars[pos - 1] = ch; 7512Debug.Assert(_ps.chars != null); 7513char[] chars = _ps.chars; 7575Debug.Assert(_ps.chars != null); 7576chars = _ps.chars; 7608Debug.Assert(_ps.chars != null); 7611if (_ps.chars[endPos] != ';') 7616string entityName = _nameTable.Add(_ps.chars, _ps.charPos, endPos - _ps.charPos); 7661Debug.Assert(_ps.chars != null); 7666string localName = _nameTable.Add(_ps.chars, _ps.charPos, endNamePos - _ps.charPos); 7674if (prefixLen == _lastPrefix.Length && _ps.chars.AsSpan(_ps.charPos).StartsWith(_lastPrefix)) 7676return AddAttribute(_nameTable.Add(_ps.chars, colonPos + 1, endNamePos - colonPos - 1), 7682string prefix = _nameTable.Add(_ps.chars, startPos, prefixLen); 7684return AddAttribute(_nameTable.Add(_ps.chars, colonPos + 1, endNamePos - colonPos - 1), 8174Debug.Assert(_ps.chars != null); 8184count = _incReadDecoder.Decode(_ps.chars, _incReadLeftStartPos, charsLeft); 8223Debug.Assert(_ps.chars.AsSpan(_ps.charPos - 2).StartsWith("?>")); 8231Debug.Assert(_ps.chars.AsSpan(_ps.charPos - 3).StartsWith("-->")); 8239Debug.Assert(_ps.chars.AsSpan(_ps.charPos - 3).StartsWith("]]>")); 8268char[] chars = _ps.chars; 8380(_ps.chars[endPos] == '>' || XmlCharType.IsWhiteSpace(_ps.chars[endPos]))) 8389if (XmlCharType.IsWhiteSpace(_ps.chars[endPos])) 8393if (_ps.chars[_ps.charPos] != '>') 8406chars = _ps.chars; 8418if (endPos - _ps.charPos - 1 == _curNode.localName.Length && _ps.chars.AsSpan(_ps.charPos + 1).StartsWith(_curNode.localName) && 8419(_ps.chars[endPos] == '>' || _ps.chars[endPos] == '/' || XmlCharType.IsWhiteSpace(_ps.chars[endPos]))) 8428chars = _ps.chars; 8503count = _incReadDecoder.Decode(_ps.chars, startPos, charsParsed); 8564Debug.Assert(_ps.chars != null); 8566char[] chars = _ps.chars; 8626chars = _ps.chars; 8648chars = _ps.chars; 8709chars = _ps.chars; 8783Debug.Assert(_ps.chars != null); 8785if (XmlCharType.IsNCNameSingleChar(_ps.chars[_ps.charPos])) 8788while (XmlCharType.IsNCNameSingleChar(_ps.chars[pos])) 8792return new string(_ps.chars, _ps.charPos, pos - _ps.charPos); 8797return new string(_ps.chars, _ps.charPos, 1); 8861Debug.Assert(_ps.chars != null); 8863if (_v1Compat && pos == _ps.charsUsed - 1 && _ps.chars[pos] == (char)0 && ReadData() == 0 && _ps.isStreamEof) 9385Debug.Assert(_ps.chars != null); 9401charsRead = _incReadDecoder.Decode(_ps.chars, startPos, endPos - startPos); 9416_curNode.SetValue(_ps.chars, startPos, endPos - startPos); 9418AdjustLineInfo(_ps.chars, startPos - charsRead, startPos, _ps.eolNormalized, ref _incReadLineInfo);
System\Xml\Core\XmlTextReaderImplAsync.cs (125)
695BlockCopyChars(_ps.chars, startPos, buffer, (index + readCount), copyCount); 718_curNode.SetValue(_ps.chars, startPos, endPos - startPos); 904if (_ps.chars == null || _ps.chars.Length < bufferSize + 1) 951if (_ps.chars == null) 1035if (_ps.charsUsed == _ps.chars.Length - 1) 1043char[] newChars = new char[_ps.chars.Length * 2]; 1044BlockCopyChars(_ps.chars, 0, newChars, 0, _ps.chars.Length); 1062charsRead = _ps.chars.Length - _ps.charsUsed - 1; 1070int charsLen = _ps.chars.Length; 1086BlockCopyChars(_ps.chars, _ps.charPos, _ps.chars, 0, copyCharsCount); 1093char[] newChars = new char[_ps.chars.Length * 2]; 1094BlockCopyChars(_ps.chars, 0, newChars, 0, _ps.chars.Length); 1117charsRead = _ps.chars.Length - _ps.charsUsed - 1; 1149charsRead = await _ps.textReader.ReadAsync(_ps.chars.AsMemory(_ps.charsUsed, _ps.chars.Length - _ps.charsUsed - 1)).ConfigureAwait(false); 1161Debug.Assert(_ps.charsUsed < _ps.chars.Length); 1164_ps.chars[_ps.charsUsed] = (char)0; 1179if (!_ps.chars.AsSpan(_ps.charPos).StartsWith(XmlDeclarationBeginning) || 1180XmlCharType.IsNameSingleChar(_ps.chars[_ps.charPos + 5])) 1206if (_ps.chars[_ps.charPos] == '?') 1210if (_ps.chars[_ps.charPos + 1] == '>') 1276switch (_ps.chars.AsSpan(_ps.charPos, nameEndPos - _ps.charPos)) 1315sb.Append(_ps.chars, _ps.charPos, nameEndPos - _ps.charPos); 1319if (_ps.chars[_ps.charPos] != '=') 1322if (_ps.chars[_ps.charPos] != '=') 1330char quoteChar = _ps.chars[_ps.charPos]; 1334quoteChar = _ps.chars[_ps.charPos]; 1352chars = _ps.chars; 1359if (_ps.chars[pos] == quoteChar) 1366if (_ps.chars.AsSpan(_ps.charPos).StartsWith("1.0")) 1370attr!.SetValue(_ps.chars, _ps.charPos, pos - _ps.charPos); 1376string badVersion = new string(_ps.chars, _ps.charPos, pos - _ps.charPos); 1381string encName = new string(_ps.chars, _ps.charPos, pos - _ps.charPos); 1390switch (_ps.chars.AsSpan(_ps.charPos, pos - _ps.charPos)) 1405attr!.SetValue(_ps.chars, _ps.charPos, pos - _ps.charPos); 1475char[] chars = _ps.chars; 1734char[] chars = _ps.chars; 1859char[] chars = _ps.chars; 1951char[] chars = _ps.chars; 2004char[] chars = _ps.chars; 2105char[] chars = _ps.chars; 2188chars = _ps.chars; 2294args[3] = new string(_ps.chars, _ps.charPos, endPos - _ps.charPos); 2308char[] chars = _ps.chars; 2466chars = _ps.chars; 2476chars = _ps.chars; 2541chars = _ps.chars; 2573chars = _ps.chars; 2606char[] chars = _ps.chars; 2788chars = _ps.chars; 2825if (_ps.chars[_ps.charPos] != (char)0xD) 2862chars = _ps.chars; 2930_curNode.SetValueNode(nodeType, _ps.chars, startPos, endPos - startPos); 2989_curNode.SetValueNode(nodeType, _ps.chars, startPos, endPos - startPos); 3004_stringBuilder.Append(_ps.chars, startPos, endPos - startPos); 3015_stringBuilder.Append(_ps.chars, startPos, endPos - startPos); 3040_curNode.SetValueNode(XmlNodeType.Text, _ps.chars, startPos, endPos - startPos); 3049_stringBuilder.Append(_ps.chars, startPos, endPos - startPos); 3062_stringBuilder.Append(_ps.chars, startPos, endPos - startPos); 3169Task<(int, int, int, bool)> task = ParseTextAsync(outOrChars, _ps.chars, _ps.charPos, 0, -1, outOrChars); 3403if (!XmlCharType.IsWhiteSpace(_ps.chars[pos - 1])) 3412chars = _ps.chars; 3444chars = _ps.chars; 3452ThrowInvalidChar(_ps.chars, _ps.charsUsed, _ps.charPos + offset); 3471if (_ps.chars[_ps.charPos] != (char)0xD && _ps.chars[_ps.charPos] != ']') 3500chars = _ps.chars; 3546_stringBuilder.Append(_ps.chars, startPos, endPos - startPos); 3553_stringBuilder.Append(_ps.chars, startPos, endPos - startPos); 3684if (_ps.chars[_ps.charPos] == '<' || _ps.charsUsed - _ps.charPos == 0 || await ZeroEndingStreamAsync(_ps.charPos).ConfigureAwait(false)) 3693if (_ps.chars[_ps.charPos] == '<' || _ps.charsUsed - _ps.charPos == 0 || await ZeroEndingStreamAsync(_ps.charPos).ConfigureAwait(false)) 3705if (XmlCharType.IsCharData(_ps.chars[_ps.charPos])) 3711ThrowInvalidChar(_ps.chars, _ps.charsUsed, _ps.charPos); 3718Debug.Assert(_ps.chars[_ps.charPos] == '&'); 3729Debug.Assert(_ps.chars[_ps.charPos] == '&'); 3740if (_ps.chars[_ps.charPos + 1] == '#') 3789if (_ps.chars[endPos] != ';') 3795string entityName = _nameTable.Add(_ps.chars, _ps.charPos, endPos - _ps.charPos); 3912string target = _nameTable.Add(_ps.chars, _ps.charPos, nameEndPos - _ps.charPos); 3933char ch = _ps.chars[_ps.charPos]; 3941if (ch != '?' || _ps.chars[_ps.charPos + 1] != '>') 3943Throw(SR.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(_ps.chars, _ps.charsUsed, _ps.charPos)); 3964_curNode.SetValue(_ps.chars, startPos, endPos - startPos); 3969piInDtdStringBuilder.Append(_ps.chars, startPos, endPos - startPos); 3999sb.Append(_ps.chars, startPos, endPos - startPos); 4006sb.Append(_ps.chars, startPos, endPos - startPos); 4032char[] chars = _ps.chars; 4210_curNode.SetValueNode(type, _ps.chars, startPos, endPos - startPos); 4218_stringBuilder.Append(_ps.chars, startPos, endPos - startPos); 4225_stringBuilder.Append(_ps.chars, startPos, endPos - startPos); 4257char[] chars = _ps.chars; 4424if (!_ps.chars.AsSpan(_ps.charPos).StartsWith("DOCTYPE")) 4428if (!XmlCharType.IsWhiteSpace(_ps.chars[_ps.charPos + 7])) 4497if (_ps.chars[_ps.charPos] == 'P') 4508if (!_ps.chars.AsSpan(_ps.charPos).StartsWith("PUBLIC")) 4534else if (_ps.chars[_ps.charPos] == 'S') 4545if (!_ps.chars.AsSpan(_ps.charPos).StartsWith("SYSTEM")) 4562else if (_ps.chars[_ps.charPos] != '[' && _ps.chars[_ps.charPos] != '>') 4568if (_ps.chars[_ps.charPos] == '[') 4575if (_ps.chars[_ps.charPos] != '>') 4580else if (_ps.chars[_ps.charPos] == '>') 4594char quoteChar = _ps.chars[_ps.charPos]; 4611char[] chars = _ps.chars; 4786if (_ps.chars[_ps.charPos] != (char)0xD) 4798chars = _ps.chars; 4807char[] chars = _ps.chars; 4862sb?.Append(_ps.chars, _ps.charPos, tmp2); 4875sb?.Append(_ps.chars, _ps.charPos, tmp3); 4886if (_ps.chars[_ps.charPos] != (char)0xD) 4894chars = _ps.chars; 4920Debug.Assert(_ps.chars[_ps.charPos] == '&'); 4954Debug.Assert(_ps.chars[_ps.charPos] == '&'); 4985char[] chars = _ps.chars; 5053chars = _ps.chars; 5088if (_ps.chars[endPos] != ';') 5093string entityName = _nameTable.Add(_ps.chars, _ps.charPos, endPos - _ps.charPos); 5245if (_v1Compat && pos == _ps.charsUsed - 1 && _ps.chars[pos] == (char)0 && await ReadDataAsync().ConfigureAwait(false) == 0 && _ps.isStreamEof) 5413charsRead = _incReadDecoder.Decode(_ps.chars, startPos, endPos - startPos); 5427_curNode.SetValue(_ps.chars, startPos, endPos - startPos); 5429AdjustLineInfo(_ps.chars, startPos - charsRead, startPos, _ps.eolNormalized, ref _incReadLineInfo);