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