10 references to Span
System.Private.CoreLib (10)
src\libraries\System.Private.CoreLib\src\System\Array.cs (3)
1126
new
Span
<T>(ref first, count).Fill(value);
2111
var span = new
Span
<T>(ref MemoryMarshal.GetArrayDataReference(array), array.Length);
2202
var span = new
Span
<T>(ref MemoryMarshal.GetArrayDataReference(array), array.Length);
src\libraries\System.Private.CoreLib\src\System\Memory.cs (1)
349
return new
Span
<T>(ref refToReturn, lengthOfUnderlyingSpan);
src\libraries\System.Private.CoreLib\src\System\Random.cs (1)
352
Shuffle(new
Span
<T>(ref MemoryMarshal.GetArrayDataReference(values), values.Length));
src\libraries\System.Private.CoreLib\src\System\Reflection\MethodBaseInvoker.cs (2)
292
Span<object?> copyOfArgs =
new
(ref copyOfArg, 1);
295
Span<bool> shouldCopyBack =
new
(ref copyBack, 1); // Not used for setters
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\CollectionsMarshal.cs (1)
38
span = new
Span
<T>(ref MemoryMarshal.GetArrayDataReference(items), size);
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (1)
1137
new
Span
<char>(ref result._firstChar, count).Fill(paddingChar);
src\libraries\System.Private.CoreLib\src\System\Text\UTF8Encoding.Sealed.cs (1)
71
return new
Span
<byte>(ref *pDestination, bytesWritten).ToArray(); // this overload of Span ctor doesn't validate length