6 writes to chars
dotnet-svcutil-lib (6)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImpl.cs (5)
2936_ps.chars = new char[bufferSize + 1]; 3001_ps.chars = new char[XmlReader.DefaultBufferSize + 1]; 3031_ps.chars = new char[len + 1]; 3417_ps.chars = newChars; 3467_ps.chars = newChars;
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImplHelpers.cs (1)
73chars = null;
184 references to chars
dotnet-svcutil-lib (184)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImpl.cs (184)
1938BlockCopyChars(_ps.chars, startPos, buffer, (index + readCount), copyCount); 1961_curNode.SetValue(_ps.chars, startPos, endPos - startPos); 2240_stringBuilder.Append(_ps.chars, _incReadLeftStartPos, _incReadLeftEndPos - _incReadLeftStartPos); 2253_stringBuilder.Append(_ps.chars, _ps.charPos, _ps.charsUsed - _ps.charPos); 2459return _ps.chars; 2934if (_ps.chars == null || _ps.chars.Length < bufferSize + 1) 2998if (_ps.chars == null) 3032str.CopyTo(0, _ps.chars, 0, str.Length); 3034_ps.chars[len] = (char)0; 3379_ps.bytePos += _ps.encoding.GetByteCount(_ps.chars, 0, _ps.charPos); 3407if (_ps.charsUsed == _ps.chars.Length - 1) 3415char[] newChars = new char[_ps.chars.Length * 2]; 3416BlockCopyChars(_ps.chars, 0, newChars, 0, _ps.chars.Length); 3434charsRead = _ps.chars.Length - _ps.charsUsed - 1; 3442int charsLen = _ps.chars.Length; 3458BlockCopyChars(_ps.chars, _ps.charPos, _ps.chars, 0, copyCharsCount); 3465char[] newChars = new char[_ps.chars.Length * 2]; 3466BlockCopyChars(_ps.chars, 0, newChars, 0, _ps.chars.Length); 3489charsRead = _ps.chars.Length - _ps.charsUsed - 1; 3521charsRead = _ps.textReader.Read(_ps.chars, _ps.charsUsed, _ps.chars.Length - _ps.charsUsed - 1); 3533Debug.Assert(_ps.charsUsed < _ps.chars.Length); 3536_ps.chars[_ps.charsUsed] = (char)0; 3544Debug.Assert(maxCharsCount <= _ps.chars.Length - _ps.charsUsed - 1); 3558_ps.decoder.Convert(_ps.bytes, _ps.bytePos, bytesCount, _ps.chars, _ps.charsUsed, maxCharsCount, false, out bytesCount, out charsCount, out completed); 3583_ps.decoder.Convert(_ps.bytes, _ps.bytePos + bytesDecoded, 1, _ps.chars, _ps.charsUsed + charsDecoded, 1, false, out bDec, out chDec, out completed); 3628BlockCopyChars(_ps.chars, sourcePos, _ps.chars, destPos, count); 3642if (!XmlConvert.StrEqual(_ps.chars, _ps.charPos, 5, XmlDeclarationBegining) || 3643_xmlCharType.IsNameSingleChar(_ps.chars[_ps.charPos + 5]) 3673if (_ps.chars[_ps.charPos] == '?') 3677if (_ps.chars[_ps.charPos + 1] == '>') 3742switch (_ps.chars[_ps.charPos]) 3745if (XmlConvert.StrEqual(_ps.chars, _ps.charPos, nameEndPos - _ps.charPos, "version") && xmlDeclState == 0) 3755if (XmlConvert.StrEqual(_ps.chars, _ps.charPos, nameEndPos - _ps.charPos, "encoding") && 3767if (XmlConvert.StrEqual(_ps.chars, _ps.charPos, nameEndPos - _ps.charPos, "standalone") && 3786sb.Append(_ps.chars, _ps.charPos, nameEndPos - _ps.charPos); 3790if (_ps.chars[_ps.charPos] != '=') 3793if (_ps.chars[_ps.charPos] != '=') 3801char quoteChar = _ps.chars[_ps.charPos]; 3805quoteChar = _ps.chars[_ps.charPos]; 3823chars = _ps.chars; 3832if (_ps.chars[pos] == quoteChar) 3846if (XmlConvert.StrEqual(_ps.chars, _ps.charPos, pos - _ps.charPos, "1.0")) 3851attr.SetValue(_ps.chars, _ps.charPos, pos - _ps.charPos); 3857string badVersion = new string(_ps.chars, _ps.charPos, pos - _ps.charPos); 3862string encName = new string(_ps.chars, _ps.charPos, pos - _ps.charPos); 3871if (XmlConvert.StrEqual(_ps.chars, _ps.charPos, pos - _ps.charPos, "yes")) 3875else if (XmlConvert.StrEqual(_ps.chars, _ps.charPos, pos - _ps.charPos, "no")) 3886attr.SetValue(_ps.chars, _ps.charPos, pos - _ps.charPos); 3963char[] chars = _ps.chars; 4112chars = _ps.chars; 4187chars = _ps.chars; 4197char[] chars = _ps.chars; 4369char[] chars = _ps.chars; 4446chars = _ps.chars; 4512chars = _ps.chars; 4637char[] chars = _ps.chars; 4664chars = _ps.chars; 4760args[3] = new string(_ps.chars, _ps.charPos, endPos - _ps.charPos); 4774char[] chars = _ps.chars; 4953chars = _ps.chars; 4959chars = _ps.chars; 5026chars = _ps.chars; 5058chars = _ps.chars; 5221char[] chars = _ps.chars; 5399chars = _ps.chars; 5436if (_ps.chars[_ps.charPos] != (char)0xD) 5472chars = _ps.chars; 5543_curNode.SetValueNode(nodeType, _ps.chars, startPos, endPos - startPos); 5556_stringBuilder.Append(_ps.chars, startPos, endPos - startPos); 5562_stringBuilder.Append(_ps.chars, startPos, endPos - startPos); 5587_curNode.SetValueNode(XmlNodeType.Text, _ps.chars, startPos, endPos - startPos); 5596_stringBuilder.Append(_ps.chars, startPos, endPos - startPos); 5603_stringBuilder.Append(_ps.chars, startPos, endPos - startPos); 5660char[] chars = _ps.chars; 5776if (!_xmlCharType.IsWhiteSpace(_ps.chars[pos - 1])) 5785chars = _ps.chars; 5827chars = _ps.chars; 5833ThrowInvalidChar(_ps.chars, _ps.charsUsed, _ps.charPos + offset); 5849if (_ps.chars[_ps.charPos] != (char)0xD && _ps.chars[_ps.charPos] != ']') 5873chars = _ps.chars; 5906_stringBuilder.Append(_ps.chars, startPos, endPos - startPos); 5908_stringBuilder.Append(_ps.chars, startPos, endPos - startPos); 6033if (_ps.chars[_ps.charPos] == '<' || _ps.charsUsed - _ps.charPos == 0 || ZeroEndingStream(_ps.charPos)) 6042if (_ps.chars[_ps.charPos] == '<' || _ps.charsUsed - _ps.charPos == 0 || ZeroEndingStream(_ps.charPos)) 6054if (_xmlCharType.IsCharData(_ps.chars[_ps.charPos])) 6060ThrowInvalidChar(_ps.chars, _ps.charsUsed, _ps.charPos); 6067Debug.Assert(_ps.chars[_ps.charPos] == '&'); 6076Debug.Assert(_ps.chars[_ps.charPos] == '&'); 6087if (_ps.chars[_ps.charPos + 1] == '#') 6128if (_ps.chars[endPos] != ';') 6134string entityName = _nameTable.Add(_ps.chars, _ps.charPos, endPos - _ps.charPos); 6327string target = _nameTable.Add(_ps.chars, _ps.charPos, nameEndPos - _ps.charPos); 6348char ch = _ps.chars[_ps.charPos]; 6356if (ch != '?' || _ps.chars[_ps.charPos + 1] != '>') 6358Throw(ResXml.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(_ps.chars, _ps.charsUsed, _ps.charPos)); 6374_curNode.SetValue(_ps.chars, startPos, endPos - startPos); 6379piInDtdStringBuilder.Append(_ps.chars, startPos, endPos - startPos); 6402sb.Append(_ps.chars, startPos, endPos - startPos); 6404sb.Append(_ps.chars, startPos, endPos - startPos); 6427char[] chars = _ps.chars; 6601_curNode.SetValueNode(type, _ps.chars, startPos, endPos - startPos); 6607_stringBuilder.Append(_ps.chars, startPos, endPos - startPos); 6609_stringBuilder.Append(_ps.chars, startPos, endPos - startPos); 6633char[] chars = _ps.chars; 6802if (!XmlConvert.StrEqual(_ps.chars, _ps.charPos, 7, "DOCTYPE")) 6806if (!_xmlCharType.IsWhiteSpace(_ps.chars[_ps.charPos + 7])) 6872if (_ps.chars[_ps.charPos] == 'P') 6883if (!XmlConvert.StrEqual(_ps.chars, _ps.charPos, 6, "PUBLIC")) 6909else if (_ps.chars[_ps.charPos] == 'S') 6920if (!XmlConvert.StrEqual(_ps.chars, _ps.charPos, 6, "SYSTEM")) 6937else if (_ps.chars[_ps.charPos] != '[' && _ps.chars[_ps.charPos] != '>') 6943if (_ps.chars[_ps.charPos] == '[') 6950if (_ps.chars[_ps.charPos] != '>') 6955else if (_ps.chars[_ps.charPos] == '>') 6969char quoteChar = _ps.chars[_ps.charPos]; 6986char[] chars = _ps.chars; 7164if (_ps.chars[_ps.charPos] != (char)0xD) 7176chars = _ps.chars; 7185char[] chars = _ps.chars; 7242sb.Append(_ps.chars, _ps.charPos, tmp2); 7258sb.Append(_ps.chars, _ps.charPos, tmp3); 7270if (_ps.chars[_ps.charPos] != (char)0xD) 7278chars = _ps.chars; 7284Debug.Assert(_ps.chars[startPos] == '&'); 7285if (_ps.chars[startPos + 1] == '#') 7316Debug.Assert(_ps.chars[_ps.charPos] == '&'); 7336Debug.Assert(_ps.chars[startPos] == '&' && _ps.chars[startPos + 1] == '#'); 7344chars = _ps.chars; 7416Throw((_ps.chars[startPos + 2] == 'x') ? startPos + 3 : startPos + 2, ResXml.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(ch, '\0')); 7423internalSubsetBuilder.Append(_ps.chars, _ps.charPos, pos - _ps.charPos + 1); 7445Throw((_ps.chars[startPos + 2] == 'x') ? startPos + 3 : startPos + 2, ResXml.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(high, low)); 7454internalSubsetBuilder.Append(_ps.chars, _ps.charPos, pos - _ps.charPos + 1); 7485Debug.Assert(_ps.chars[_ps.charPos] == '&'); 7506Debug.Assert(_ps.chars[startPos] == '&'); 7507Debug.Assert(_ps.chars[startPos + 1] != '#'); 7510char[] chars = _ps.chars; 7620internalSubsetBuilder.Append(_ps.chars, _ps.charPos, pos - _ps.charPos); 7622_ps.chars[pos - 1] = ch; 7644char[] chars = _ps.chars; 7726chars = _ps.chars; 7759if (_ps.chars[endPos] != ';') 7764string entityName = _nameTable.Add(_ps.chars, _ps.charPos, endPos - _ps.charPos); 7817string localName = _nameTable.Add(_ps.chars, _ps.charPos, endNamePos - _ps.charPos); 7825if (prefixLen == _lastPrefix.Length && XmlConvert.StrEqual(_ps.chars, startPos, prefixLen, _lastPrefix)) 7827return AddAttribute(_nameTable.Add(_ps.chars, colonPos + 1, endNamePos - colonPos - 1), 7833string prefix = _nameTable.Add(_ps.chars, startPos, prefixLen); 7835return AddAttribute(_nameTable.Add(_ps.chars, colonPos + 1, endNamePos - colonPos - 1), 8321count = _incReadDecoder.Decode(_ps.chars, _incReadLeftStartPos, charsLeft); 8360Debug.Assert(XmlConvert.StrEqual(_ps.chars, _ps.charPos - 2, 2, "?>")); 8368Debug.Assert(XmlConvert.StrEqual(_ps.chars, _ps.charPos - 3, 3, "-->")); 8376Debug.Assert(XmlConvert.StrEqual(_ps.chars, _ps.charPos - 3, 3, "]]>")); 8407char[] chars = _ps.chars; 8522(_ps.chars[endPos] == '>' || _xmlCharType.IsWhiteSpace(_ps.chars[endPos]))) 8531if (_xmlCharType.IsWhiteSpace(_ps.chars[endPos])) 8535if (_ps.chars[_ps.charPos] != '>') 8548chars = _ps.chars; 8561if (XmlConvert.StrEqual(_ps.chars, _ps.charPos + 1, endPos - _ps.charPos - 1, _curNode.localName) && 8562(_ps.chars[endPos] == '>' || _ps.chars[endPos] == '/' || _xmlCharType.IsWhiteSpace(_ps.chars[endPos]))) 8571chars = _ps.chars; 8646count = _incReadDecoder.Decode(_ps.chars, startPos, charsParsed); 8707char[] chars = _ps.chars; 8769chars = _ps.chars; 8791chars = _ps.chars; 8849chars = _ps.chars; 8920if (_xmlCharType.IsNCNameSingleChar(_ps.chars[_ps.charPos])) 8923while (_xmlCharType.IsNCNameSingleChar(_ps.chars[pos])) 8927return new string(_ps.chars, _ps.charPos, pos - _ps.charPos); 8932return new string(_ps.chars, _ps.charPos, 1); 8990if (_v1Compat && pos == _ps.charsUsed - 1 && _ps.chars[pos] == (char)0 && ReadData() == 0 && _ps.isStreamEof) 9527charsRead = _incReadDecoder.Decode(_ps.chars, startPos, endPos - startPos); 9541_curNode.SetValue(_ps.chars, startPos, endPos - startPos); 9543AdjustLineInfo(_ps.chars, startPos - charsRead, startPos, _ps.eolNormalized, ref _incReadLineInfo);