4 writes to bytes
dotnet-svcutil-lib (4)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImpl.cs (3)
2910
_ps.
bytes
= bytes;
2929
_ps.
bytes
= new byte[bufferSize];
3429
_ps.
bytes
= newBytes;
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImplHelpers.cs (1)
79
bytes
= null;
24 references to bytes
dotnet-svcutil-lib (24)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImpl.cs (24)
2912
bufferSize = _ps.
bytes
.Length;
2927
if (_ps.
bytes
== null || _ps.
bytes
.Length < bufferSize)
2941
while (_ps.bytesUsed < 4 && _ps.
bytes
.Length - _ps.bytesUsed > 0)
2943
int read = stream.Read(_ps.
bytes
, _ps.bytesUsed, _ps.
bytes
.Length - _ps.bytesUsed);
2965
if (_ps.
bytes
[i] != preamble[i])
3166
Debug.Assert(_ps.
bytes
!= null);
3173
int first2Bytes = _ps.
bytes
[0] << 8 | _ps.
bytes
[1];
3174
int next2Bytes = (_ps.bytesUsed >= 4) ? (_ps.
bytes
[2] << 8 | _ps.
bytes
[3]) : 0;
3351
Debug.Assert(_ps.stream != null && _ps.decoder != null && _ps.
bytes
!= null);
3425
if (_ps.
bytes
.Length - _ps.bytesUsed < MaxByteSequenceLen)
3427
byte[] newBytes = new byte[_ps.
bytes
.Length * 2];
3428
BlockCopy(_ps.
bytes
, 0, newBytes, 0, _ps.bytesUsed);
3483
BlockCopy(_ps.
bytes
, _ps.bytePos, _ps.
bytes
, 0, bytesLeft);
3497
if (_ps.bytePos == _ps.bytesUsed && _ps.
bytes
.Length - _ps.bytesUsed > 0)
3499
int read = _ps.stream.Read(_ps.
bytes
, _ps.bytesUsed, _ps.
bytes
.Length - _ps.bytesUsed);
3543
Debug.Assert(_ps.stream != null && _ps.decoder != null && _ps.
bytes
!= null);
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);