6 writes to _index
System.Private.CoreLib (6)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Memory.cs (6)
48_index = 0; 68_index = start; 106_index = start; 129_index = 0; 153_index = start; 169_index = start;
13 references to _index
System.Private.CoreLib (13)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Memory.cs (13)
187new ReadOnlyMemory<T>(memory._object, memory._index, memory._length); 212return (_object is string str) ? str.Substring(_index, _length) : Span.ToString(); 233return new Memory<T>(_object, _index + start, _length - start); 257return new Memory<T>(_object, _index + start, length); 328nuint desiredStartIndex = (uint)_index & (uint)ReadOnlyMemory<T>.RemoveFlagsBitMask; 402ref char stringData = ref Unsafe.Add(ref s.GetRawStringData(), _index); 411if (_index < 0) 414void* pointer = Unsafe.Add<T>(Unsafe.AsPointer(ref MemoryMarshal.GetArrayDataReference(Unsafe.As<T[]>(tmpObject))), _index & ReadOnlyMemory<T>.RemoveFlagsBitMask); 421void* pointer = Unsafe.Add<T>(Unsafe.AsPointer(ref MemoryMarshal.GetArrayDataReference(Unsafe.As<T[]>(tmpObject))), _index); 428return Unsafe.As<MemoryManager<T>>(tmpObject).Pin(_index); 471_index == other._index && 483return (_object != null) ? HashCode.Combine(RuntimeHelpers.GetHashCode(_object), _index, _length) : 0;