211 references to Span
BuildValidator (3)
InMemory.FunctionalTests (3)
Microsoft.AspNetCore.Components.Server (1)
Microsoft.AspNetCore.DataProtection (1)
Microsoft.AspNetCore.Http.Connections.Common (1)
Microsoft.AspNetCore.OpenApi (1)
Microsoft.AspNetCore.Server.HttpSys (7)
Microsoft.AspNetCore.Server.IIS (5)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (3)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (3)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (3)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (3)
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (3)
Microsoft.AspNetCore.Shared.Tests (2)
Microsoft.AspNetCore.SignalR.Common (1)
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (1)
Microsoft.CodeAnalysis (9)
Hashing\XxHashShared.cs (9)
122Debug.Assert(new Span<byte>(secret, SecretLengthBytes).SequenceEqual(DefaultSecret));
173DefaultSecret.CopyTo(new Span<byte>(secret, SecretLengthBytes));
260source.CopyTo(new Span<byte>(buffer + state.BufferedCount, source.Length));
275source.Slice(0, loadSize).CopyTo(new Span<byte>(buffer + state.BufferedCount, loadSize));
314source.Slice(sourceIndex - StripeLengthBytes, StripeLengthBytes).CopyTo(new Span<byte>(buffer + InternalBufferLengthBytes - StripeLengthBytes, StripeLengthBytes));
327source.Slice(sourceIndex - StripeLengthBytes, StripeLengthBytes).CopyTo(new Span<byte>(buffer + InternalBufferLengthBytes - StripeLengthBytes, StripeLengthBytes));
331Span<byte> remaining = new Span<byte>(buffer, source.Length - sourceIndex);
390new ReadOnlySpan<byte>(buffer + InternalBufferLengthBytes - catchupSize, catchupSize).CopyTo(new Span<byte>(lastStripe, StripeLengthBytes));
391new ReadOnlySpan<byte>(buffer, (int)state.BufferedCount).CopyTo(new Span<byte>(lastStripe + catchupSize, (int)state.BufferedCount));
Microsoft.CodeAnalysis.CodeStyle (9)
src\Compilers\Core\Portable\Hashing\XxHashShared.cs (9)
122Debug.Assert(new Span<byte>(secret, SecretLengthBytes).SequenceEqual(DefaultSecret));
173DefaultSecret.CopyTo(new Span<byte>(secret, SecretLengthBytes));
260source.CopyTo(new Span<byte>(buffer + state.BufferedCount, source.Length));
275source.Slice(0, loadSize).CopyTo(new Span<byte>(buffer + state.BufferedCount, loadSize));
314source.Slice(sourceIndex - StripeLengthBytes, StripeLengthBytes).CopyTo(new Span<byte>(buffer + InternalBufferLengthBytes - StripeLengthBytes, StripeLengthBytes));
327source.Slice(sourceIndex - StripeLengthBytes, StripeLengthBytes).CopyTo(new Span<byte>(buffer + InternalBufferLengthBytes - StripeLengthBytes, StripeLengthBytes));
331Span<byte> remaining = new Span<byte>(buffer, source.Length - sourceIndex);
390new ReadOnlySpan<byte>(buffer + InternalBufferLengthBytes - catchupSize, catchupSize).CopyTo(new Span<byte>(lastStripe, StripeLengthBytes));
391new ReadOnlySpan<byte>(buffer, (int)state.BufferedCount).CopyTo(new Span<byte>(lastStripe + catchupSize, (int)state.BufferedCount));
Microsoft.CodeAnalysis.Workspaces (9)
src\Compilers\Core\Portable\Hashing\XxHashShared.cs (9)
122Debug.Assert(new Span<byte>(secret, SecretLengthBytes).SequenceEqual(DefaultSecret));
173DefaultSecret.CopyTo(new Span<byte>(secret, SecretLengthBytes));
260source.CopyTo(new Span<byte>(buffer + state.BufferedCount, source.Length));
275source.Slice(0, loadSize).CopyTo(new Span<byte>(buffer + state.BufferedCount, loadSize));
314source.Slice(sourceIndex - StripeLengthBytes, StripeLengthBytes).CopyTo(new Span<byte>(buffer + InternalBufferLengthBytes - StripeLengthBytes, StripeLengthBytes));
327source.Slice(sourceIndex - StripeLengthBytes, StripeLengthBytes).CopyTo(new Span<byte>(buffer + InternalBufferLengthBytes - StripeLengthBytes, StripeLengthBytes));
331Span<byte> remaining = new Span<byte>(buffer, source.Length - sourceIndex);
390new ReadOnlySpan<byte>(buffer + InternalBufferLengthBytes - catchupSize, catchupSize).CopyTo(new Span<byte>(lastStripe, StripeLengthBytes));
391new ReadOnlySpan<byte>(buffer, (int)state.BufferedCount).CopyTo(new Span<byte>(lastStripe + catchupSize, (int)state.BufferedCount));
Microsoft.ML.ImageAnalytics (1)
Microsoft.ML.TensorFlow (1)
Microsoft.ML.Tokenizers (1)
PresentationCore (1)
System.Diagnostics.DiagnosticSource (1)
System.Diagnostics.Process (1)
System.Formats.Asn1 (2)
System.Formats.Cbor (1)
System.IO.Hashing (9)
System\IO\Hashing\XxHashShared.cs (9)
117Debug.Assert(new Span<byte>(secret, SecretLengthBytes).SequenceEqual(DefaultSecret));
168DefaultSecret.CopyTo(new Span<byte>(secret, SecretLengthBytes));
251source.CopyTo(new Span<byte>(buffer + state.BufferedCount, source.Length));
266source.Slice(0, loadSize).CopyTo(new Span<byte>(buffer + state.BufferedCount, loadSize));
305source.Slice(sourceIndex - StripeLengthBytes, StripeLengthBytes).CopyTo(new Span<byte>(buffer + InternalBufferLengthBytes - StripeLengthBytes, StripeLengthBytes));
318source.Slice(sourceIndex - StripeLengthBytes, StripeLengthBytes).CopyTo(new Span<byte>(buffer + InternalBufferLengthBytes - StripeLengthBytes, StripeLengthBytes));
322Span<byte> remaining = new Span<byte>(buffer, source.Length - sourceIndex);
381new ReadOnlySpan<byte>(buffer + InternalBufferLengthBytes - catchupSize, catchupSize).CopyTo(new Span<byte>(lastStripe, StripeLengthBytes));
382new ReadOnlySpan<byte>(buffer, (int)state.BufferedCount).CopyTo(new Span<byte>(lastStripe + catchupSize, (int)state.BufferedCount));
System.IO.Pipes (1)
System.Memory (1)
System.Net.NameResolution (2)
System.Net.Ping (1)
System.Net.Quic (8)
System.Net.Security (4)
System.Net.Sockets (6)
System\Net\Sockets\SocketAsyncContext.Unix.cs (2)
547bool completed = SocketPal.TryCompleteReceiveFrom(context._socket, new Span<byte>(BufferPtr, Length), null, Flags, SocketAddress.Span, out int socketAddressLen, out BytesTransferred, out ReceivedFlags, out ErrorCode);
604bool completed = SocketPal.TryCompleteReceiveMessageFrom(context._socket, new Span<byte>(BufferPtr, Length), null, Flags, SocketAddress!, out int socketAddressLen, IsIPv4, IsIPv6, out BytesTransferred, out ReceivedFlags, out IPPacketInformation, out ErrorCode);
System\Net\Sockets\SocketPal.Unix.cs (2)
792received = SysReceive(socket, flags | SocketFlags.Peek, new Span<byte>(&oneBytePeekBuffer, 1), out errno);
860received = SysReceive(socket, flags | SocketFlags.Peek, new Span<byte>(&oneBytePeekBuffer, 1), socketAddress, out receivedSocketAddressLength, out receivedFlags, out errno);
System.Private.CoreLib (55)
src\libraries\System.Private.CoreLib\src\System\Number.Formatting.cs (14)
308var vlb = new ValueListBuilder<char>(new Span<char>(stackPtr, CharStackBufferSize));
336var vlb = new ValueListBuilder<TChar>(new Span<TChar>(stackPtr, CharStackBufferSize));
680var vlb = new ValueListBuilder<char>(new Span<char>(stackPtr, CharStackBufferSize));
739var vlb = new ValueListBuilder<TChar>(new Span<TChar>(stackPtr, CharStackBufferSize));
794var vlb = new ValueListBuilder<char>(new Span<char>(stackPtr, CharStackBufferSize));
851var vlb = new ValueListBuilder<TChar>(new Span<TChar>(stackPtr, CharStackBufferSize));
910var vlb = new ValueListBuilder<char>(new Span<char>(stackPtr, CharStackBufferSize));
971var vlb = new ValueListBuilder<TChar>(new Span<TChar>(stackPtr, CharStackBufferSize));
1026var vlb = new ValueListBuilder<char>(new Span<char>(stackPtr, CharStackBufferSize));
1083var vlb = new ValueListBuilder<TChar>(new Span<TChar>(stackPtr, CharStackBufferSize));
1144var vlb = new ValueListBuilder<char>(new Span<char>(stackPtr, CharStackBufferSize));
1205var vlb = new ValueListBuilder<TChar>(new Span<TChar>(stackPtr, CharStackBufferSize));
1262var vlb = new ValueListBuilder<char>(new Span<char>(stackPtr, CharStackBufferSize));
1319var vlb = new ValueListBuilder<TChar>(new Span<TChar>(stackPtr, CharStackBufferSize));
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (4)
231new Span<T>(source, startIndex, length).CopyTo(new Span<T>((void*)destination, length));
284new Span<T>((void*)source, length).CopyTo(new Span<T>(destination, startIndex, length));
975int nbWritten = Encoding.UTF8.GetBytes(s, new Span<byte>(pbMem, nb));
1016int nbWritten = Encoding.UTF8.GetBytes(s, new Span<byte>(pbMem, nb));
System.Private.Windows.Core (24)
Windows\Win32\System\Variant\VARIANT.cs (18)
751return new Span<sbyte>(ca.pElems, (int)ca.cElems).ToArray();
753return new Span<byte>(ca.pElems, (int)ca.cElems).ToArray();
755return new Span<short>(ca.pElems, (int)ca.cElems).ToArray();
757return new Span<ushort>(ca.pElems, (int)ca.cElems).ToArray();
760Span<VARIANT_BOOL> data = new(ca.pElems, (int)ca.cElems);
772return new Span<int>(ca.pElems, (int)ca.cElems).ToArray();
776return new Span<uint>(ca.pElems, (int)ca.cElems).ToArray();
778return new Span<long>(ca.pElems, (int)ca.cElems).ToArray();
780return new Span<ulong>(ca.pElems, (int)ca.cElems).ToArray();
782return new Span<float>(ca.pElems, (int)ca.cElems).ToArray();
784return new Span<double>(ca.pElems, (int)ca.cElems).ToArray();
787Span<long> data = new(ca.pElems, (int)ca.cElems);
799Span<double> data = new(ca.pElems, (int)ca.cElems);
811var data = new Span<FILETIME>(ca.pElems, (int)ca.cElems);
822return new Span<Guid>(ca.pElems, (int)ca.cElems).ToArray();
826Span<IntPtr> data = new(ca.pElems, (int)ca.cElems);
838Span<IntPtr> data = new(ca.pElems, (int)ca.cElems);
850Span<VARIANT> data = new(ca.pElems, (int)ca.cElems);
System.Reflection.Metadata (2)
System.Runtime.Numerics (1)
System.Security.Cryptography (5)
System.Security.Cryptography.Cose (1)
System.Security.Cryptography.Pkcs (1)
System.Security.Cryptography.ProtectedData (1)
System.Text.Encoding.CodePages (1)
System.Text.Encodings.Web (2)
System.Windows.Forms (2)
System.Windows.Forms.Primitives (4)
System.Windows.Forms.Primitives.Tests (2)