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