7 writes to charsUsed
dotnet-svcutil-lib (7)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImpl.cs (6)
3033
_ps.
charsUsed
= len;
3381
_ps.
charsUsed
= _ps.charPos;
3461
_ps.
charsUsed
= copyCharsCount;
3522
_ps.
charsUsed
+= charsRead;
3567
_ps.
charsUsed
+= charsCount;
8992
_ps.
charsUsed
--;
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImplHelpers.cs (1)
75
charsUsed
= 0;
125 references to charsUsed
dotnet-svcutil-lib (125)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImpl.cs (125)
1515
if (_ps.
charsUsed
- _ps.charPos == 0)
1536
if (_ps.
charsUsed
- _ps.charPos == 0 && !_ps.entity.IsExternal)
2253
_stringBuilder.Append(_ps.chars, _ps.charPos, _ps.
charsUsed
- _ps.charPos);
2254
_ps.charPos = _ps.
charsUsed
;
2467
return _ps.
charsUsed
;
2479
Debug.Assert(value >= 0 && value <= _ps.
charsUsed
);
2898
Debug.Assert(_ps.charPos == 0 && _ps.
charsUsed
== 0 && _ps.textReader == null);
2991
Debug.Assert(_ps.charPos == 0 && _ps.
charsUsed
== 0 && _ps.stream == null);
3023
Debug.Assert(_ps.charPos == 0 && _ps.
charsUsed
== 0);
3354
Debug.Assert(_ps.
charsUsed
>= _ps.charPos, "The current position must be in the valid character range.");
3362
Debug.Assert(_charactersInDocument >= _ps.
charsUsed
- _ps.charPos,
3364
_charactersInDocument -= _ps.
charsUsed
- _ps.charPos;
3370
Debug.Assert(_charactersFromEntities >= _ps.
charsUsed
- _ps.charPos,
3372
_charactersFromEntities -= _ps.
charsUsed
- _ps.charPos;
3407
if (_ps.
charsUsed
== _ps.chars.Length - 1)
3434
charsRead = _ps.chars.Length - _ps.
charsUsed
- 1;
3443
if (charsLen - _ps.
charsUsed
<= charsLen / 2)
3452
int copyCharsCount = _ps.
charsUsed
- _ps.charPos;
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);
3595
Throw(_ps.
charsUsed
, ResXml.Xml_InvalidCharInThisEncoding);
3634
while (_ps.
charsUsed
- _ps.charPos < 6)
3723
else if (_ps.charPos + 1 == _ps.
charsUsed
)
3899
else if (pos == _ps.
charsUsed
)
3969
if (_ps.
charsUsed
- pos < 4) // minimum "<a/>"
3984
if (_ps.
charsUsed
- pos < 2) // minimum characters expected "--"
4009
if (_ps.
charsUsed
- pos < 6)
4119
else if (pos == _ps.
charsUsed
|| ((_v1Compat || mangoQuirks) && chars[pos] == 0x0))
4147
Debug.Assert(pos == _ps.
charsUsed
&& !_ps.isEof);
4215
if (_ps.
charsUsed
- pos < 2)
4238
if (_ps.
charsUsed
- pos < 6)
4272
if (pos + 1 == _ps.
charsUsed
)
4293
if (pos == _ps.
charsUsed
)
4312
if (_ps.
charsUsed
- _ps.charPos != 0)
4338
Throw(_ps.
charsUsed
, ResXml.Xml_UnexpectedEOF1);
4361
Throw(_ps.
charsUsed
, ResXml.Xml_UnexpectedEOFInElementContent, _stringBuilder.ToString());
4439
else if (pos + 1 < _ps.
charsUsed
)
4504
if (pos + 1 == _ps.
charsUsed
)
4529
Throw(pos, ResXml.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(chars, _ps.
charsUsed
, pos));
4628
while (_ps.
charsUsed
- _ps.charPos < prefLen + locLen + 1)
4666
if (pos == _ps.
charsUsed
)
4701
else if (pos == _ps.
charsUsed
&& !_ps.isEof)
4715
else if (pos == _ps.
charsUsed
)
4801
else if (pos + 1 != _ps.
charsUsed
)
4846
if (pos + 1 == _ps.
charsUsed
)
4863
else if (pos == _ps.
charsUsed
)
4869
Throw(pos, ResXml.Xml_BadStartNameChar, XmlException.BuildCharExceptionArgs(chars, _ps.
charsUsed
, pos));
4956
else if (pos + 1 >= _ps.
charsUsed
)
5274
else if (pos + 1 < _ps.
charsUsed
|| _ps.isEof)
5403
if (pos == _ps.
charsUsed
)
5413
if (pos + 1 == _ps.
charsUsed
)
5424
ThrowInvalidChar(chars, _ps.
charsUsed
, pos);
5434
if (_ps.
charsUsed
- _ps.charPos > 0)
5715
else if (pos + 1 < _ps.
charsUsed
|| _ps.isEof)
5789
if (_ps.
charsUsed
- pos < 3 && !_ps.isEof)
5802
if (pos == _ps.
charsUsed
)
5812
if (pos + 1 == _ps.
charsUsed
)
5833
ThrowInvalidChar(_ps.chars, _ps.
charsUsed
, _ps.charPos + offset);
5847
if (_ps.
charsUsed
- _ps.charPos > 0)
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))
6060
ThrowInvalidChar(_ps.chars, _ps.
charsUsed
, _ps.charPos);
6078
if (_ps.charPos + 1 == _ps.
charsUsed
)
6349
Debug.Assert(_ps.charPos < _ps.
charsUsed
);
6352
if (_ps.
charsUsed
- _ps.charPos < 2)
6358
Throw(ResXml.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(_ps.chars, _ps.
charsUsed
, _ps.charPos));
6418
if (_ps.
charsUsed
- _ps.charPos < 2)
6422
Throw(_ps.
charsUsed
, ResXml.Xml_UnexpectedEOF, "PI");
6463
else if (pos + 1 == _ps.
charsUsed
)
6504
else if (pos + 1 < _ps.
charsUsed
|| _ps.isEof)
6526
if (pos == _ps.
charsUsed
)
6536
if (pos + 1 == _ps.
charsUsed
)
6547
ThrowInvalidChar(chars, _ps.
charsUsed
, pos);
6623
if (_ps.
charsUsed
- _ps.charPos < 3)
6671
else if (pos + 2 == _ps.
charsUsed
)
6680
else if (pos + 1 == _ps.
charsUsed
)
6723
else if (pos + 1 < _ps.
charsUsed
|| _ps.isEof)
6745
if (pos == _ps.
charsUsed
)
6753
if (pos + 1 == _ps.
charsUsed
)
6764
ThrowInvalidChar(chars, _ps.
charsUsed
, pos);
6795
while (_ps.
charsUsed
- _ps.charPos < 8)
6875
while (_ps.
charsUsed
- _ps.charPos < 6)
6912
while (_ps.
charsUsed
- _ps.charPos < 6)
7022
else if (pos + 1 < _ps.
charsUsed
|| _ps.isEof)
7048
if (pos + 3 >= _ps.
charsUsed
&& !_ps.isEof)
7063
else if (pos + 1 >= _ps.
charsUsed
&& !_ps.isEof)
7073
if (pos + 2 >= _ps.
charsUsed
&& !_ps.isEof)
7091
if (pos + 1 >= _ps.
charsUsed
&& !_ps.isEof)
7132
if (pos == _ps.
charsUsed
)
7142
if (pos + 1 == _ps.
charsUsed
)
7153
ThrowInvalidChar(chars, _ps.
charsUsed
, pos);
7162
if (_ps.
charsUsed
- _ps.charPos > 0)
7212
else if (pos + 1 < _ps.
charsUsed
|| _ps.isEof)
7231
if (pos == _ps.
charsUsed
)
7266
if (_ps.
charsUsed
- _ps.charPos == 0)
7371
else if (pos < _ps.
charsUsed
)
7398
if (pos == _ps.
charsUsed
)
7505
Debug.Assert(startPos < _ps.
charsUsed
);
7521
if (_ps.
charsUsed
- pos >= 3)
7538
if (_ps.
charsUsed
- pos >= 4)
7553
else if (pos < _ps.
charsUsed
)
7560
if (_ps.
charsUsed
- pos >= 5)
7577
if (_ps.
charsUsed
- pos >= 3)
7593
if (_ps.
charsUsed
- pos >= 3)
7660
if (pos + 1 >= _ps.
charsUsed
)
7670
Throw(pos, ResXml.Xml_BadStartNameChar, XmlException.BuildCharExceptionArgs(chars, _ps.
charsUsed
, pos));
7718
else if (pos == _ps.
charsUsed
8457
else if (pos + 1 < _ps.
charsUsed
)
8474
if (_ps.
charsUsed
- pos < 2)
8487
if (_ps.
charsUsed
- pos < 4)
8497
if (_ps.
charsUsed
- pos < 9)
8580
if (_ps.
charsUsed
- pos < 2)
8619
if (pos == _ps.
charsUsed
)
8795
if (pos == _ps.
charsUsed
)
8805
if (pos + 1 == _ps.
charsUsed
)
8816
ThrowInvalidChar(chars, _ps.
charsUsed
, pos);
8916
if (_ps.charPos == _ps.
charsUsed
)
8931
Debug.Assert(_ps.charPos < _ps.
charsUsed
);
8990
if (_v1Compat && pos == _ps.
charsUsed
- 1 && _ps.chars[pos] == (char)0 && ReadData() == 0 && _ps.isStreamEof)