11 writes to bytesUsed
System.Private.Xml (11)
System\Xml\Core\XmlTextReaderImpl.cs (5)
2855_ps.bytesUsed = byteCount; 2891_ps.bytesUsed += read; 3419_ps.bytesUsed = 0; 3425_ps.bytesUsed = bytesLeft; 3448_ps.bytesUsed += read;
System\Xml\Core\XmlTextReaderImplAsync.cs (5)
881_ps.bytesUsed = byteCount; 919_ps.bytesUsed += read; 1107_ps.bytesUsed = 0; 1112_ps.bytesUsed = bytesLeft; 1132_ps.bytesUsed += read;
System\Xml\Core\XmlTextReaderImplHelpers.cs (1)
75bytesUsed = 0;
27 references to bytesUsed
System.Private.Xml (27)
System\Xml\Core\XmlTextReaderImpl.cs (16)
2883if (_ps.bytesUsed < 4 && _ps.bytes.Length - _ps.bytesUsed > 0) 2885int bytesToRead = Math.Min(4, _ps.bytes.Length - _ps.bytesUsed); 2886int read = stream.ReadAtLeast(_ps.bytes.AsSpan(_ps.bytesUsed), bytesToRead, throwOnEndOfStream: false); 3092if (_ps.bytesUsed < 2) 3098int next2Bytes = (_ps.bytesUsed >= 4) ? (_ps.bytes[2] << 8 | _ps.bytes[3]) : 0; 3197if (_ps.bytes.AsSpan(0, _ps.bytesUsed).StartsWith(preamble)) 3362if (_ps.bytesUsed - _ps.bytePos < MaxByteSequenceLen) 3365if (_ps.bytes.Length - _ps.bytesUsed < MaxByteSequenceLen) 3368BlockCopy(_ps.bytes, 0, newBytes, 0, _ps.bytesUsed); 3414int bytesLeft = _ps.bytesUsed - _ps.bytePos; 3441if (_ps.bytePos == _ps.bytesUsed && _ps.bytes.Length - _ps.bytesUsed > 0) 3443int read = _ps.stream.Read(_ps.bytes, _ps.bytesUsed, _ps.bytes.Length - _ps.bytesUsed); 3493int bytesCount = _ps.bytesUsed - _ps.bytePos;
System\Xml\Core\XmlTextReaderImplAsync.cs (11)
911if (_ps.bytesUsed < 4 && _ps.bytes.Length - _ps.bytesUsed > 0) 913int bytesToRead = Math.Min(4, _ps.bytes.Length - _ps.bytesUsed); 914int read = await stream.ReadAtLeastAsync(_ps.bytes.AsMemory(_ps.bytesUsed), bytesToRead, throwOnEndOfStream: false).ConfigureAwait(false); 1051if (_ps.bytesUsed - _ps.bytePos < MaxByteSequenceLen) 1053if (_ps.bytes!.Length - _ps.bytesUsed < MaxByteSequenceLen) 1056BlockCopy(_ps.bytes, 0, newBytes, 0, _ps.bytesUsed); 1102int bytesLeft = _ps.bytesUsed - _ps.bytePos; 1125if (_ps.bytePos == _ps.bytesUsed && _ps.bytes!.Length - _ps.bytesUsed > 0) 1127int read = await _ps.stream.ReadAsync(_ps.bytes.AsMemory(_ps.bytesUsed)).ConfigureAwait(false);