10 references to AsSpan
Microsoft.Build.Framework (7)
Collections\RefArrayBuilder.cs (2)
111
=> _scope.
AsSpan
()[.._count];
315
Span<T> destination = newScope.
AsSpan
();
NativeMethods.cs (5)
725
int length = (int)PInvoke.GetShortPathName(path, buffer.
AsSpan
());
731
length = (int)PInvoke.GetShortPathName(path, buffer.
AsSpan
());
767
int length = (int)PInvoke.GetLongPathName(path, buffer.
AsSpan
());
773
length = (int)PInvoke.GetLongPathName(path, buffer.
AsSpan
());
1240
ReadOnlySpan<char> result = buffer.
AsSpan
().Slice(0, fullPathLength);
Microsoft.Build.Framework.UnitTests (2)
BufferScope_Tests.cs (2)
130
Span<int> span = buffer.
AsSpan
();
375
foreach (int value in buffer.
AsSpan
()[..5])
Microsoft.Build.Tasks.Core (1)
ComReference.cs (1)
415
int pathLength = (int)PInvoke.GetModuleFileName(handle, buffer.
AsSpan
());