3 writes to _origin
mscorlib (3)
system\io\memorystream.cs (3)
81_origin = 0; // Must be 0 for byte[]'s created by MemoryStream 96_origin = 0; 120_origin = _position = index;
22 references to _origin
mscorlib (22)
system\io\memorystream.cs (22)
226buffer = new ArraySegment<byte>(_buffer, offset:_origin, count:(_length - _origin)); 242origin = _origin; 286return _capacity - _origin; 292Contract.Ensures(_capacity - _origin == value); 316return _length - _origin; 323return _position - _origin; 335_position = _origin + (int)value; 489int tempPosition = unchecked(_origin + (int)offset); 490if (offset < 0 || tempPosition < _origin) 497if (unchecked(_position + offset) < _origin || tempPosition < _origin) 504if ( unchecked(_length + offset) < _origin || tempPosition < _origin ) 531Contract.Ensures(_length - _origin == value); 537if (value > (Int32.MaxValue - _origin)) { 541int newLength = _origin + (int)value; 552byte[] copy = new byte[_length - _origin]; 553Buffer.InternalBlockCopy(_buffer, _origin, copy, 0, _length - _origin); 661stream.Write(_buffer, _origin, _length - _origin);