154 references to Span
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)
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)
761received = SysReceive(socket, flags | SocketFlags.Peek, new Span<byte>(&oneBytePeekBuffer, 1), out errno);
829received = SysReceive(socket, flags | SocketFlags.Peek, new Span<byte>(&oneBytePeekBuffer, 1), socketAddress, out receivedSocketAddressLength, out receivedFlags, out errno);
System.Net.WebSockets (1)
System.Private.CoreLib (62)
src\libraries\System.Private.CoreLib\src\System\Number.Formatting.cs (14)
325var vlb = new ValueListBuilder<char>(new Span<char>(stackPtr, CharStackBufferSize));
353var vlb = new ValueListBuilder<TChar>(new Span<TChar>(stackPtr, CharStackBufferSize));
919var vlb = new ValueListBuilder<char>(new Span<char>(stackPtr, CharStackBufferSize));
978var vlb = new ValueListBuilder<TChar>(new Span<TChar>(stackPtr, CharStackBufferSize));
1033var vlb = new ValueListBuilder<char>(new Span<char>(stackPtr, CharStackBufferSize));
1090var vlb = new ValueListBuilder<TChar>(new Span<TChar>(stackPtr, CharStackBufferSize));
1149var vlb = new ValueListBuilder<char>(new Span<char>(stackPtr, CharStackBufferSize));
1210var vlb = new ValueListBuilder<TChar>(new Span<TChar>(stackPtr, CharStackBufferSize));
1265var vlb = new ValueListBuilder<char>(new Span<char>(stackPtr, CharStackBufferSize));
1322var vlb = new ValueListBuilder<TChar>(new Span<TChar>(stackPtr, CharStackBufferSize));
1383var vlb = new ValueListBuilder<char>(new Span<char>(stackPtr, CharStackBufferSize));
1444var vlb = new ValueListBuilder<TChar>(new Span<TChar>(stackPtr, CharStackBufferSize));
1501var vlb = new ValueListBuilder<char>(new Span<char>(stackPtr, CharStackBufferSize));
1558var vlb = new ValueListBuilder<TChar>(new Span<TChar>(stackPtr, CharStackBufferSize));
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (7)
233new Span<T>(source, startIndex, length).CopyTo(new Span<T>((void*)destination, length));
286new Span<T>((void*)source, length).CopyTo(new Span<T>(destination, startIndex, length));
959s.CopyTo(new Span<char>((char*)ptr, s.Length));
977int nbWritten = Encoding.UTF8.GetBytes(s, new Span<byte>(pbMem, nb));
1000s.CopyTo(new Span<char>((char*)ptr, s.Length));
1018int nbWritten = Encoding.UTF8.GetBytes(s, new Span<byte>(pbMem, nb));
1230s.CopyTo(new Span<char>((char*)bstr, s.Length)); // AllocBSTR already included the null terminator
System.Reflection.Metadata (3)
System.Runtime.Numerics (2)
System.Security.Cryptography (5)
System.Security.Cryptography.Cose (1)
System.Text.Encoding.CodePages (1)
System.Text.Encodings.Web (2)