24 references to AsSpan
Microsoft.AspNetCore.Components.Server (1)
src\aspnetcore\src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\BufferWriter.cs (1)
84_span = _segment.AsSpan();
Microsoft.AspNetCore.DataProtection (1)
Managed\ManagedAuthenticatedEncryptor.cs (1)
294var plainTextSpan = plaintext.AsSpan();
Microsoft.AspNetCore.WebUtilities (2)
MultipartReaderStream.cs (2)
180var index = bufferedData.AsSpan().IndexOf(_boundary.BoundaryBytes); 264var index = bufferedData.AsSpan().IndexOf(_boundary.BoundaryBytes);
Microsoft.Extensions.DependencyModel (1)
DependencyContextJsonReader.cs (1)
34buffer.AsSpan().Clear();
Microsoft.Extensions.ServiceDiscovery.Dns (1)
Resolver\DnsDataReader.cs (1)
27if (!DnsPrimitives.TryReadMessageHeader(MessageBuffer.AsSpan(), out header, out int bytesRead))
System.Diagnostics.Process (4)
System\Diagnostics\Process.Multiplexing.cs (4)
392return (outputEncoding.GetString(standardOutput.AsSpan()), errorEncoding.GetString(standardError.AsSpan())); 428return (standardOutput.AsSpan().ToArray(), standardError.AsSpan().ToArray());
System.Formats.Nrbf (1)
System\Formats\Nrbf\Utils\TypeNameHelpers.cs (1)
133TypeName.TryParse(assemblyQualifiedName.AsSpan(), out TypeName? typeName, payloadOptions.TypeNameParseOptions);
System.Net.Security (2)
System\Net\Security\SslStreamCertificateContext.Linux.cs (2)
410uriString = string.Concat(baseUri, encodedRequest.AsSpan()); 414uriString = string.Concat(baseUri, "/", encodedRequest.AsSpan());
System.Security.Cryptography (5)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaCng.Windows.cs (2)
140ReadOnlySpan<byte> privateKey = KeyFormatHelper.ReadPkcs8([Algorithm.Oid], pkcs8.AsSpan(), out _); 177pkcs8.AsSpan().CopyTo(destination);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLDsaCng.Windows.cs (2)
231pkcs8.AsSpan().CopyTo(destination); 486ReadOnlySpan<byte> privateKey = KeyFormatHelper.ReadPkcs8(KnownOids, pkcs8.AsSpan(), out _);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.Pkcs12.cs (1)
1174decrypted.AsSpan().CopyTo(_keyDecryptBuffer.AsSpan(_keyDecryptBufferOffset));
System.Text.Json (6)
System\Text\Json\Document\JsonDocument.cs (2)
830return rented.AsSpan(); 837rented.AsSpan().Clear();
System\Text\Json\Document\JsonDocument.Parse.cs (4)
139drained.AsSpan().Clear(); 166drained.AsSpan().Clear(); 236drained.AsSpan().Clear(); 254drained.AsSpan().Clear();