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