146 references to Span
Microsoft.AspNetCore.Components.Server.Tests (1)
Microsoft.AspNetCore.DataProtection (6)
Managed\AesGcmAuthenticatedEncryptor.cs (6)
122var nonce = new Span<byte>(ciphertext.Array, nonceOffset, NONCE_SIZE_IN_BYTES);
123var tag = new Span<byte>(ciphertext.Array, tagOffset, TAG_SIZE_IN_BYTES);
124var encrypted = new Span<byte>(ciphertext.Array, encryptedDataOffset, plaintextBytes);
195var nonce = new Span<byte>(retVal, nonceOffset, NONCE_SIZE_IN_BYTES);
196var tag = new Span<byte>(retVal, tagOffset, TAG_SIZE_IN_BYTES);
197var encrypted = new Span<byte>(retVal, encryptedDataOffset, plaintext.Count);
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (6)
BufferWriterTests.cs (6)
51writer.Write(new Span<byte>(array, 0, 0));
52writer.Write(new Span<byte>(array, array.Length, 0));
56writer.Write(new Span<byte>(array, offset, length));
64writer.Write(new Span<byte>(array, 0, array.Length));
80writer.Write(new Span<byte>(array, offset, length));
98writer.Write(new Span<byte>(array, 0, array.Length));
Microsoft.AspNetCore.SignalR.Common (1)
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (1)
Microsoft.AspNetCore.WebUtilities (3)
Microsoft.AspNetCore.WebUtilities.Tests (1)
Microsoft.Build (2)
Microsoft.Build.Tasks.Core (2)
Microsoft.CodeAnalysis.Workspaces (1)
Microsoft.Extensions.AI.OpenAI (1)
Microsoft.Extensions.Caching.Hybrid.Tests (1)
Microsoft.Extensions.Logging.Console (1)
Microsoft.ML.CpuMath.PerformanceTests (22)
Microsoft.ML.Transforms (3)
Shared (1)
System.Collections.Immutable (4)
System.ComponentModel.TypeConverter (1)
System.Console (2)
System.Formats.Asn1 (2)
System.IO.Compression (2)
System.IO.Compression.Brotli (1)
System.IO.Packaging (1)
System.IO.Pipelines (1)
System.IO.Pipes (1)
System.Linq (1)
System.Linq.AsyncEnumerable (2)
System.Memory.Data (2)
System.Net.Http (3)
System.Net.Quic (1)
System.Net.Requests (1)
System.Net.Security (3)
System.Net.ServerSentEvents (1)
System.Net.Sockets (3)
System\Net\Sockets\SocketPal.Unix.cs (3)
1288bool completed = TryCompleteReceive(handle, new Span<byte>(buffer, offset, count), socketFlags, out bytesTransferred, out errorCode);
1318if (!TryCompleteReceiveMessageFrom(handle, new Span<byte>(buffer, offset, count), null, socketFlags, socketAddress.Buffer, out socketAddressLen, isIPv4, isIPv6, out bytesTransferred, out socketFlags, out ipPacketInformation, out errorCode))
1363bool completed = TryCompleteReceiveFrom(handle, new Span<byte>(buffer, offset, count), socketFlags, socketAddress.Span, out socketAddressLen, out bytesTransferred, out socketFlags, out errorCode);
System.Net.WebClient (1)
System.Net.WebSockets (3)
System.Private.CoreLib (29)
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (5)
3715return new Span<T>(array, start, length);
3724return new Span<T>(segment.Array, segment.Offset, segment.Count);
3744return new Span<T>(segment.Array, segment.Offset + start, segment.Count - start);
3780return new Span<T>(segment.Array, segment.Offset + start, length);
3792return new Span<T>(segment.Array, segment.Offset + start, length);
System.Private.DataContractSerialization (2)
System.Reflection.Metadata (1)
System.Security.Cryptography (12)
System\Security\Cryptography\CryptoStream.cs (5)
362CryptographicOperations.ZeroMemory(new Span<byte>(_inputBuffer, 0, _inputBufferIndex));
396CryptographicOperations.ZeroMemory(new Span<byte>(tempOutputBuffer, 0, numOutputBytes));
417CryptographicOperations.ZeroMemory(new Span<byte>(tempInputBuffer, 0, numWholeBlocksInBytes));
611CryptographicOperations.ZeroMemory(new Span<byte>(tempOutputBuffer, 0, numOutputBytes));
617CryptographicOperations.ZeroMemory(new Span<byte>(tempOutputBuffer, 0, numOutputBytes));
System.Security.Cryptography.Pkcs (3)
System.Text.Json (6)
System.Windows.Forms (1)