13 writes to _position
mscorlib (13)
system\io\memorystream.cs (13)
120_origin = _position = index; 257int pos = (_position += 4); // use temp to avoid ---- 260_position = _length; 275_position += n; 335_position = _origin + (int)value; 367_position += n; 416return _buffer[_position++]; 492_position = tempPosition; 499_position = tempPosition; 506_position = tempPosition; 546if (_position > newLength) _position = newLength; 595_position = i; 650_buffer[_position++] = value;
24 references to _position
mscorlib (24)
system\io\memorystream.cs (24)
249return _position; 270int n = _length - _position; 274Contract.Assert(_position + n >= 0, "_position + n >= 0"); // len is less than 2^31 -1. 323return _position - _origin; 352int n = _length - _position; 357Contract.Assert(_position + n >= 0, "_position + n >= 0"); // len is less than 2^31 -1. 363buffer[offset + byteCount] = _buffer[_position + byteCount]; 366Buffer.InternalBlockCopy(_buffer, _position, buffer, offset, n); 414if (_position >= _length) return -1; 461Int32 pos = _position; 462Int32 n = InternalEmulateRead(_length - _position); 496int tempPosition = unchecked(_position + (int)offset); 497if (unchecked(_position + offset) < _origin || tempPosition < _origin) 513Contract.Assert(_position >= 0, "_position >= 0"); 514return _position; 546if (_position > newLength) _position = newLength; 571int i = _position + count; 577bool mustZero = _position > _length; 591_buffer[_position + byteCount] = buffer[offset + byteCount]; 594Buffer.InternalBlockCopy(buffer, offset, _buffer, _position, count); 638if (_position >= _length) { 639int newLength = _position + 1; 640bool mustZero = _position > _length; 647Array.Clear(_buffer, _length, _position - _length);