5 writes to _length
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\ReadOnlySpan.cs (5)
50
_length
= array.Length;
84
_length
= length;
111
_length
= length;
120
_length
= 1;
130
_length
= length;
18 references to _length
System.Private.CoreLib (18)
src\libraries\System.Private.CoreLib\src\System\ReadOnlySpan.cs (18)
148
if ((uint)index >= (uint)
_length
)
161
get =>
_length
;
171
get =>
_length
== 0;
293
if (
_length
!= 0) ret = ref _reference;
313
if ((uint)
_length
<= (uint)destination.Length)
315
Buffer.Memmove(ref destination._reference, ref _reference, (uint)
_length
);
334
if ((uint)
_length
<= (uint)destination.Length)
336
Buffer.Memmove(ref destination._reference, ref _reference, (uint)
_length
);
347
left.
_length
== right.
_length
&&
358
return new string(new ReadOnlySpan<char>(ref Unsafe.As<T, char>(ref _reference),
_length
));
360
return $"System.ReadOnlySpan<{typeof(T).Name}>[{
_length
}]";
373
if ((uint)start > (uint)
_length
)
376
return new ReadOnlySpan<T>(ref Unsafe.Add(ref _reference, (nint)(uint)start /* force zero-extension */),
_length
- start);
392
if ((ulong)(uint)start + (ulong)(uint)length > (ulong)(uint)
_length
)
409
if (
_length
== 0)
412
var destination = new T[
_length
];
413
Buffer.Memmove(ref MemoryMarshal.GetArrayDataReference(destination), ref _reference, (uint)
_length
);