3 writes to _length
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\ReadOnlyMemory.cs (3)
49
_length
= array.Length;
85
_length
= length;
105
_length
= length;
13 references to _length
System.Private.CoreLib (13)
src\libraries\System.Private.CoreLib\src\System\ReadOnlyMemory.cs (12)
126
public int Length =>
_length
;
131
public bool IsEmpty =>
_length
== 0;
141
return (_object is string str) ? str.Substring(_index,
_length
) : Span.ToString();
143
return $"System.ReadOnlyMemory<{typeof(T).Name}>[{
_length
}]";
156
if ((uint)start > (uint)
_length
)
162
return new ReadOnlyMemory<T>(_object, _index + start,
_length
- start);
178
if ((ulong)(uint)start + (ulong)(uint)length > (ulong)(uint)
_length
)
252
int desiredLength =
_length
;
384
_length
== other.
_length
;
393
return (_object != null) ? HashCode.Combine(RuntimeHelpers.GetHashCode(_object), _index,
_length
) : 0;
404
length =
_length
;
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\MemoryMarshal.cs (1)
74
new Memory<T>(memory._object, memory._index, memory.
_length
);