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)
187
new ReadOnlyMemory<T>(memory._object, memory.
_index
, memory._length);
212
return (_object is string str) ? str.Substring(
_index
, _length) : Span.ToString();
233
return new Memory<T>(_object,
_index
+ start, _length - start);
257
return new Memory<T>(_object,
_index
+ start, length);
328
nuint desiredStartIndex = (uint)
_index
& (uint)ReadOnlyMemory<T>.RemoveFlagsBitMask;
402
ref char stringData = ref Unsafe.Add(ref s.GetRawStringData(),
_index
);
411
if (
_index
< 0)
414
void* pointer = Unsafe.Add<T>(Unsafe.AsPointer(ref MemoryMarshal.GetArrayDataReference(Unsafe.As<T[]>(tmpObject))),
_index
& ReadOnlyMemory<T>.RemoveFlagsBitMask);
421
void* pointer = Unsafe.Add<T>(Unsafe.AsPointer(ref MemoryMarshal.GetArrayDataReference(Unsafe.As<T[]>(tmpObject))),
_index
);
428
return Unsafe.As<MemoryManager<T>>(tmpObject).Pin(
_index
);
471
_index
== other.
_index
&&
483
return (_object != null) ? HashCode.Combine(RuntimeHelpers.GetHashCode(_object),
_index
, _length) : 0;