3 writes to _index
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\ReadOnlyMemory.cs (3)
48_index = 0; 84_index = start; 104_index = start;
14 references to _index
System.Private.CoreLib (14)
src\libraries\System.Private.CoreLib\src\System\ReadOnlyMemory.cs (13)
141return (_object is string str) ? str.Substring(_index, _length) : Span.ToString(); 162return new ReadOnlyMemory<T>(_object, _index + start, _length - start); 186return new ReadOnlyMemory<T>(_object, _index + start, length); 250nuint desiredStartIndex = (uint)_index & (uint)RemoveFlagsBitMask; 317ref char stringData = ref Unsafe.Add(ref s.GetRawStringData(), _index); 326if (_index < 0) 329void* pointer = Unsafe.Add<T>(Unsafe.AsPointer(ref MemoryMarshal.GetArrayDataReference(Unsafe.As<T[]>(tmpObject))), _index & RemoveFlagsBitMask); 336void* pointer = Unsafe.Add<T>(Unsafe.AsPointer(ref MemoryMarshal.GetArrayDataReference(Unsafe.As<T[]>(tmpObject))), _index); 343return Unsafe.As<MemoryManager<T>>(tmpObject).Pin(_index); 383_index == other._index && 393return (_object != null) ? HashCode.Combine(RuntimeHelpers.GetHashCode(_object), _index, _length) : 0; 403start = _index;
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\MemoryMarshal.cs (1)
74new Memory<T>(memory._object, memory._index, memory._length);