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