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