421 references to ToArray
Aspire.Cli.Tests (1)
Agents\PlaywrightCliInstallerTests.cs (1)
300var content = "test content for hashing"u8.ToArray();
Aspire.RabbitMQ.Client.Tests (1)
ConformanceTests.cs (1)
126body: "hello world"u8.ToArray());
Aspire.RabbitMQ.Client.v6.Tests (1)
tests\Aspire.RabbitMQ.Client.Tests\ConformanceTests.cs (1)
117body: "hello world"u8.ToArray());
ILAssembler (6)
GrammarVisitor.cs (4)
2524SerializationTypeCode.SZArray => valueBytes.ToArray(), 2526SerializationTypeCode.TaggedObject => valueBytes.ToArray(), 2528SerializationTypeCode.Enum => valueBytes.ToArray(), 2530_ => bytes.AsSpan().ToArray()
VTableExportPEBuilder.cs (2)
520var sortedExports = _exports.AsSpan().ToArray(); 524var exportsArray = _exports.AsSpan().ToArray();
ILCompiler.Compiler (8)
Compiler\ObjectWriter\CodeView\CodeViewSymbolsBuilder.cs (1)
379_subsectionWriter._data.Add(_bufferWriter.WrittenSpan.ToArray());
Compiler\ObjectWriter\CodeView\CodeViewTypesBuilder.cs (1)
527byte[] overflow = _bufferWriter.WrittenSpan.Slice(_lastListMemberStart).ToArray();
src\runtime\src\coreclr\tools\Common\Compiler\DependencyAnalysis\Target_Wasm\WasmTypes.cs (1)
144return string.Join(" ", result.Types.ToArray().Select(t => t.ToTypeString()));
src\runtime\src\coreclr\tools\Common\Compiler\NativeAotNameMangler.cs (2)
89Utf8String sanitizedName = (sb != null) ? sb.ToUtf8String() : new Utf8String(s.ToArray()); 108mangledName = new Utf8String(mangledName.AsSpan().Slice(0, 30).ToArray());
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\SectionData.cs (1)
39_buffers.Add(_appendBuffer.WrittenSpan.ToArray());
src\runtime\src\coreclr\tools\Common\Internal\Text\Utf8String.cs (1)
24_value = underlyingSpan.ToArray();
src\runtime\src\coreclr\tools\Common\Internal\Text\Utf8StringBuilder.cs (1)
118return new Utf8String(AsSpan().ToArray());
ILCompiler.ReadyToRun (8)
Compiler\ReadyToRunCompilerContext.cs (1)
236_similarVectorName = similarVector.ToArray();
JitInterface\CorInfoImpl.ReadyToRun.cs (1)
3559CorInfoWasmType[] typeArray = new ReadOnlySpan<CorInfoWasmType>(types, (int)typesSize).ToArray();
src\runtime\src\coreclr\tools\Common\Compiler\DependencyAnalysis\Target_Wasm\WasmTypes.cs (1)
144return string.Join(" ", result.Types.ToArray().Select(t => t.ToTypeString()));
src\runtime\src\coreclr\tools\Common\Compiler\NativeAotNameMangler.cs (2)
89Utf8String sanitizedName = (sb != null) ? sb.ToUtf8String() : new Utf8String(s.ToArray()); 108mangledName = new Utf8String(mangledName.AsSpan().Slice(0, 30).ToArray());
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\SectionData.cs (1)
39_buffers.Add(_appendBuffer.WrittenSpan.ToArray());
src\runtime\src\coreclr\tools\Common\Internal\Text\Utf8String.cs (1)
24_value = underlyingSpan.ToArray();
src\runtime\src\coreclr\tools\Common\Internal\Text\Utf8StringBuilder.cs (1)
118return new Utf8String(AsSpan().ToArray());
ILCompiler.TypeSystem (8)
src\runtime\src\coreclr\tools\Common\Internal\Text\Utf8Span.cs (1)
23public byte[] ToArray() => _value.ToArray();
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\SimpleArrayOfTRuntimeInterfacesAlgorithm.cs (5)
17"IEnumerable`1"u8.ToArray(), 18"ICollection`1"u8.ToArray(), 19"IList`1"u8.ToArray(), 20"IReadOnlyList`1"u8.ToArray(), 21"IReadOnlyCollection`1"u8.ToArray(),
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaModule.cs (2)
608return ResolutionFailure.GetMissingFieldFailure(parentTypeDesc, System.Text.Encoding.UTF8.GetString(name.ToArray())); 660return ResolutionFailure.GetMissingMethodFailure(parentTypeDesc, System.Text.Encoding.UTF8.GetString(name.ToArray()), sig);
Microsoft.AspNetCore.Antiforgery (2)
Internal\DefaultAntiforgeryTokenSerializer.cs (2)
130tokenBytes[..securityTokenByteLength].ToArray()); 160tokenBytes[..claimUidByteLength].ToArray());
Microsoft.AspNetCore.Components.Server (1)
src\aspnetcore\src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\MessagePackWriter.cs (1)
1113return span.ToArray();
Microsoft.AspNetCore.DataProtection (12)
Cng\CbcAuthenticatedEncryptor.cs (2)
206return refPooledBuffer.WrittenSpan.ToArray(); 409var resultSpan = refPooledBuffer.WrittenSpan.ToArray();
Cng\CngGcmAuthenticatedEncryptor.cs (2)
173return refPooledBuffer.WrittenSpan.ToArray(); 328var resultSpan = refPooledBuffer.WrittenSpan.ToArray();
KeyManagement\KeyRingBasedSpanDataProtector.cs (3)
71var ciphertext = defaultEncryptor.Encrypt(plaintext.ToArray(), aad); 175var result = requestedEncryptor.Decrypt(actualCiphertext.ToArray(), aad.ToArray());
Managed\AesGcmAuthenticatedEncryptor.cs (2)
176return refPooledBuffer.WrittenSpan.ToArray(); 215return refPooledBuffer.WrittenSpan.ToArray();
Managed\ManagedAuthenticatedEncryptor.cs (3)
311return refPooledBuffer.WrittenSpan.ToArray(); 428validationAlgorithm.Key = validationSubkeyArray ?? validationSubkey.ToArray(); 493return refPooledBuffer.WrittenSpan.ToArray();
Microsoft.AspNetCore.HostFiltering (1)
HostFilteringMiddleware.cs (1)
25).ToArray();
Microsoft.AspNetCore.Http.Abstractions (1)
Internal\ParsingHelpers.cs (1)
35string[] result = strings.AsSpan().ToArray();
Microsoft.AspNetCore.Http.Connections.Client (1)
Internal\ServerSentEventsTransport.cs (1)
139var parser = SseParser.Create(stream, (eventType, bytes) => bytes.ToArray());
Microsoft.AspNetCore.Http.Results (1)
Utf8ContentHttpResult.cs (1)
24ResponseContent = utf8Content.ToArray();
Microsoft.AspNetCore.Server.Kestrel.Core (2)
src\aspnetcore\src\Shared\runtime\Http2\Hpack\HeaderField.cs (2)
27Name = name.ToArray(); 28Value = value.ToArray();
Microsoft.AspNetCore.Watch.BrowserRefresh (1)
src\sdk\src\Dotnet.Watch\Web.Middleware\ScriptInjectingStream.cs (1)
20private static readonly ReadOnlyMemory<byte> s_bodyTagBytes = "</body>"u8.ToArray();
Microsoft.CodeAnalysis (2)
InternalUtilities\LittleEndianReader.cs (1)
60var result = ReadBytes(byteCount).ToArray();
PEWriter\MetadataWriter.cs (1)
465_pseudoSymbolTokenToReferenceMap = referencesInIL.ToArray();
Microsoft.CodeAnalysis.Analyzers (1)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
1038TSource[] chunk = new ReadOnlySpan<TSource>(source, index, Math.Min(size, source.Length - index)).ToArray();
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
1038TSource[] chunk = new ReadOnlySpan<TSource>(source, index, Math.Min(size, source.Length - index)).ToArray();
Microsoft.CodeAnalysis.CodeStyle (1)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
1038TSource[] chunk = new ReadOnlySpan<TSource>(source, index, Math.Min(size, source.Length - index)).ToArray();
Microsoft.CodeAnalysis.Extensions.Package (1)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
1038TSource[] chunk = new ReadOnlySpan<TSource>(source, index, Math.Min(size, source.Length - index)).ToArray();
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
1038TSource[] chunk = new ReadOnlySpan<TSource>(source, index, Math.Min(size, source.Length - index)).ToArray();
Microsoft.Diagnostics.DataContractReader.Contracts (1)
_generated\0\LayoutSet.g.cs (1)
65=> $"Field not found in any layout (names=[{string.Join(",", names.ToArray())}]).";
Microsoft.Diagnostics.DataContractReader.Legacy (2)
Dbi\DacDbiImpl.cs (2)
1606cdacCtx.FillFromBuffer(new Span<byte>(cdac.ToArray())); 1607dacCtx.FillFromBuffer(new Span<byte>(legacy.ToArray()));
Microsoft.DotNet.Build.Tasks.Installers (2)
src\CpioWriter.cs (2)
21stream.Write("070701"u8.ToArray()); 38stream.Write("00000000"u8.ToArray()); // Check field
Microsoft.DotNet.Cli.Utils (1)
MSBuildArgs.cs (1)
151return new MSBuildArgs(null, null, null, null, null, null, null, null, noLogo: false, args.ToArray());
Microsoft.Extensions.AI.Abstractions.Tests (2)
ChatCompletion\ChatResponseUpdateTests.cs (2)
124new DataContent("data"u8.ToArray(), "text/plain"), 152Assert.Equal("data"u8.ToArray(), ((DataContent)result.Contents[3]).Data.ToArray());
Microsoft.Extensions.AI.Evaluation.NLP (1)
Common\NGram.cs (1)
20: this(values.ToArray())
Microsoft.Extensions.Caching.Hybrid.Tests (5)
BufferReleaseTests.cs (2)
134cache.BackendCache.Set(key, new ReadOnlySpan<byte>(arr, 0, bytes).ToArray()); 197cache.BackendCache.Set(key, new ReadOnlySpan<byte>(arr, 0, bytes).ToArray());
SerializerTests.cs (3)
32var value = "test value"u8.ToArray(); 294return Encoding.UTF8.GetString(value.ToArray()); 300return BitConverter.ToString(value.ToArray());
Microsoft.Extensions.Compliance.Redaction (1)
HmacRedactor.cs (1)
113return hmac.ComputeHash(Encoding.Unicode.GetBytes(value.ToArray()));
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (13)
Resolver\DnsPrimitivesTests.cs (13)
12{ "www.example.com", "\x0003www\x0007example\x0003com\x0000"u8.ToArray() }, 13{ "example.com", "\x0007example\x0003com\x0000"u8.ToArray() }, 14{ "com", "\x0003com\x0000"u8.ToArray() }, 15{ "example", "\x0007example\x0000"u8.ToArray() }, 16{ "www", "\x0003www\x0000"u8.ToArray() }, 17{ "a", "\x0001a\x0000"u8.ToArray() }, 93ReadOnlyMemory<byte> data = "\x0003www\x0007example\x0003com\x0000"u8.ToArray(); 105Memory<byte> data = "padding\x0007example\x0003com\x0000\x0003www\x00\x07"u8.ToArray(); 117Memory<byte> data = "padding\x0007example\x0003com\x0000\x0003www\x00\x07"u8.ToArray(); 130Memory<byte> data = "\x03www\x00\x000dpadding\x0007example\x0003com\x00"u8.ToArray(); 140Memory<byte> data = "\x0003www\0\0"u8.ToArray(); 150Memory<byte> data = "\x0003com\0\x0007example\0\0\x0008example2\0\0"u8.ToArray(); 162Memory<byte> data = "\x0003www\x00c0"u8.ToArray();
Microsoft.Extensions.Telemetry.Tests (7)
Latency\Internal\LatencyContextTests.cs (7)
95Assert.Empty(measures.ToArray()); 120Assert.Single(measures.ToArray()); 146Assert.Single(measures.ToArray()); 173var tags = context.LatencyData.Tags.ToArray(); 204Assert.Single(tags.ToArray()); 256Assert.Empty(checkpoints.ToArray()); 281Assert.Single(checkpoints.ToArray());
Microsoft.ML.Core (1)
Data\AnnotationUtils.cs (1)
414categoricalFeatures = catIndicesValues.ToArray();
Microsoft.ML.Core.Tests (3)
UnitTests\TestVBuffer.cs (3)
291Assert.Equal(expectedIndices, a.GetIndices().ToArray()); 293var actualValues = a.GetValues().ToArray(); 317Assert.Equal(values, a.GetValues().ToArray());
Microsoft.ML.Data (5)
Transforms\KeyToValue.cs (5)
536string[] values = Array.ConvertAll<TValue, string>(_values.GetValues().ToArray(), item => Convert.ToString(item)); 544float[] values = Array.ConvertAll<TValue, float>(_values.GetValues().ToArray(), item => Convert.ToSingle(item)); 550float[] values = Array.ConvertAll<TValue, float>(_values.GetValues().ToArray(), item => Convert.ToSingle(item)); 559string[] values = Array.ConvertAll<TValue, string>(_values.GetValues().ToArray(), item => Convert.ToString(item)); 564float[] values = Array.ConvertAll<TValue, float>(_values.GetValues().ToArray(), item => Convert.ToSingle(item));
Microsoft.ML.OnnxTransformer (1)
OnnxUtils.cs (1)
570return NamedOnnxValue.CreateFromTensor<T>(name, new DenseTensor<T>(data.ToArray(), dimensions));
Microsoft.ML.OnnxTransformerTest (5)
OnnxTransformTests.cs (5)
455Assert.Equal(0, buffera.GetValues().ToArray().Sum()); 456Assert.Equal(30, bufferb.GetValues().ToArray().Sum()); 495Assert.Equal(0, buffera.GetValues().ToArray().Sum()); 496Assert.Equal(30, bufferb.GetValues().ToArray().Sum()); 516Assert.Equal(30, bufferb.GetValues().ToArray().Sum());
Microsoft.ML.Samples (4)
Dynamic\Trainers\Clustering\KMeans.cs (2)
81string.Join(", ", centroids[0].GetValues().ToArray().Take(3))); 85string.Join(", ", centroids[1].GetValues().ToArray().Take(3)));
Dynamic\Trainers\Clustering\KMeansWithOptions.cs (2)
89string.Join(", ", centroids[0].GetValues().ToArray().Take(3))); 93string.Join(", ", centroids[1].GetValues().ToArray().Take(3)));
Microsoft.ML.TensorFlow.Tests (1)
TensorflowTests.cs (1)
732Assert.NotEqual(trainedBias.GetValues().ToArray(), new float[] { 0.1f, 0.1f, 0.1f, 0.1f, 0.1f, 0.1f, 0.1f, 0.1f, 0.1f, 0.1f });
Microsoft.ML.Tests (17)
ImagesTests.cs (12)
1244Assert.Equal(image1.Pixels.ToArray(), image2.Pixels.ToArray()); 1258Assert.Equal(image1.Pixels.ToArray(), image3.Pixels.ToArray()); 1339Assert.Equal(image1.Pixels.ToArray(), image2.Pixels.ToArray()); 1346Assert.Equal(image1.Pixels.ToArray(), image2.Pixels.ToArray()); 1348Assert.Equal(image1.Pixels.ToArray(), image2.Pixels.ToArray()); 1373Assert.Equal(image1.Pixels.ToArray(), image2.Pixels.ToArray());
TextLoaderTests.cs (5)
923features[count] = featuresPeriod.GetValues().ToArray(); 971Assert.Equal(features[count], featuresComma.GetValues().ToArray()); 1020foreach (float feature in featuresPeriod.GetValues().ToArray()) 1089var featuresPeriodArray = featuresPeriod.GetValues().ToArray(); 1090var featuresCommaArray = featuresComma.GetValues().ToArray();
Microsoft.ML.TimeSeries (4)
AdaptiveSingularSpectrumSequenceModeler.cs (4)
1538return result.PointForecast.GetValues().ToArray(); 1547forecast = result.PointForecast.GetValues().ToArray(); 1548confidenceIntervalLowerBounds = ssaResult.LowerBound.GetValues().ToArray(); 1549confidenceIntervalUpperBounds = ssaResult.UpperBound.GetValues().ToArray();
Microsoft.ML.Tokenizers (1)
Normalizer\SentencePieceNormalizer.cs (1)
613normalized = blob.Slice((int)trieBlobSize).ToArray();
Microsoft.ML.Transforms (3)
MissingValueReplacing.cs (1)
267T[] valReturn = srcValues.ToArray();
PermutationFeatureImportance.cs (2)
102var indexes = weights.GetIndices().ToArray(); 103var values = weights.GetValues().ToArray();
Microsoft.NET.Build.Containers (1)
StreamExtensions.cs (1)
16byte[] expectedHash = DigestUtils.GetEncodedValue(digest).ToArray();
Microsoft.NET.HostModel (2)
AppHost\PlaceHolderNotFoundInAppHostException.cs (1)
21MissingPattern = pattern.ToArray();
ComHost\TypeLibReader.cs (1)
48return new Guid(fileContents.Slice(fileOffset + typelibGuidEntryOffset, 16).ToArray());
Microsoft.Private.Windows.Core (2)
_generated\214\Windows.Win32.RECT.InlineArrays.g.cs (1)
40 return new ReadOnlySpan<winmdroot.Foundation.RECT>(p0, SpanLength).Slice(0, length).ToArray();
System\TypeExtensions.cs (1)
274name.SetPublicKey(publicKey.ToArray());
NuGet.Protocol (1)
Converters\Utf8JsonReaderExtensions.cs (1)
27: Encoding.UTF8.GetString(reader.ValueSpan.ToArray()),
PresentationFramework (1)
MS\Internal\WindowsRuntime\Generated\WinRT\Marshalers.cs (1)
298return abiSpan.ToArray();
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
1038TSource[] chunk = new ReadOnlySpan<TSource>(source, index, Math.Min(size, source.Length - index)).ToArray();
Shared (1)
ServerSentEvents\SseFormatter.cs (1)
21private static readonly byte[] _newLine = "\n"u8.ToArray();
System.Collections.Immutable (2)
System\Collections\Frozen\FrozenHashTable.cs (1)
155Debug.Assert(!hashCodesAreUnique || new HashSet<int>(hashCodes.ToArray()).Count == hashCodes.Length);
System\Collections\Immutable\ImmutableArray.cs (1)
98T[] array = items.ToArray();
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\Metrics\Measurement.cs (1)
67_tags = tags.ToArray();
System.Drawing.Common (3)
System\Drawing\ImageConverter.cs (1)
141return new MemoryStream(data.ToArray());
System\Drawing\Imaging\ImageCodecInfo.cs (2)
107codec.SignaturePatterns[j] = new ReadOnlySpan<byte>(codecInfo[i].SigPattern + j * codecInfo[i].SigSize, (int)codecInfo[i].SigSize).ToArray(); 108codec.SignatureMasks[j] = new ReadOnlySpan<byte>(codecInfo[i].SigMask + j * codecInfo[i].SigSize, (int)codecInfo[i].SigSize).ToArray();
System.Formats.Asn1 (4)
System\Formats\Asn1\AsnCharacterStringEncodings.cs (2)
323bytes.Slice(bytes.Length - 1).ToArray(), 339bytes.Slice(i, 2).ToArray(),
System\Formats\Asn1\AsnDecoder.BitString.cs (1)
292byte[] ret = localValue.ToArray();
System\Formats\Asn1\AsnDecoder.OctetString.cs (1)
173byte[] ret = contents.ToArray();
System.Formats.Cbor (1)
System\Formats\Cbor\Writer\CborWriter.cs (1)
227public byte[] Encode() => GetSpanEncoding().ToArray();
System.IO.Compression (6)
System\IO\Compression\ZipBlocks.cs (5)
65field._data = bytes.Slice(FieldLocations.DynamicData, field._size).ToArray(); 627trailingData = trailingDataSpan.ToArray(); 939header.Filename = dynamicHeader[..header.FilenameLength].ToArray(); 963header.TrailingExtraFieldData = trailingDataSpan.ToArray(); 975header.FileComment = dynamicHeader.Slice(header.FilenameLength + header.ExtraFieldLength, header.FileCommentLength).ToArray();
System\IO\Compression\Zstandard\ZstandardDictionary.cs (1)
48byte[] data = buffer.ToArray();
System.Linq (1)
System\Linq\Chunk.cs (1)
66TSource[] chunk = new ReadOnlySpan<TSource>(source, index, Math.Min(size, source.Length - index)).ToArray();
System.Net.Http (10)
src\runtime\src\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\HeaderField.cs (2)
27Name = name.ToArray(); 28Value = value.ToArray();
System\Net\Http\Headers\HttpHeaderParser.cs (1)
14public static readonly byte[] DefaultSeparatorBytes = ", "u8.ToArray();
System\Net\Http\HttpContent.cs (1)
64$"Expected (constant): {BitConverter.ToString(preamble.ToArray())}, Actual (Encoding.GetPreamble()): {BitConverter.ToString(actualPreamble)}");
System\Net\Http\SocketsHttpHandler\ChunkedEncodingReadStream.cs (2)
335throw new HttpIOException(HttpRequestError.InvalidResponse, SR.Format(SR.net_http_invalid_response_chunk_header_invalid, BitConverter.ToString(currentLine.ToArray()))); 452throw new HttpIOException(HttpRequestError.InvalidResponse, SR.Format(SR.net_http_invalid_response_chunk_extension_invalid, BitConverter.ToString(lineAfterChunkSize.ToArray())));
System\Net\Http\SocketsHttpHandler\ChunkedEncodingWriteStream.cs (2)
14private static readonly byte[] s_crlfBytes = "\r\n"u8.ToArray(); 15private static readonly byte[] s_finalChunkBytes = "0\r\n\r\n"u8.ToArray();
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (1)
505(KnownHeaders.AcceptEncoding.Descriptor, "gzip, deflate"u8.ToArray()),
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (1)
1124throw new HttpRequestException(HttpRequestError.InvalidResponse, SR.Format(SR.net_http_invalid_response_status_reason, Encoding.ASCII.GetString(reasonBytes.ToArray())), formatEx);
System.Net.Http.WinHttpHandler (3)
System\Net\Http\WinHttpRequestCallback.cs (1)
342AddressFamily.InterNetworkV6 => new IPAddress(remoteAddressSpan.Slice(8, 16).ToArray()),
System\Net\Http\WinHttpRequestStream.cs (2)
19private static readonly byte[] s_crLfTerminator = "\r\n"u8.ToArray(); 20private static readonly byte[] s_endChunk = "0\r\n\r\n"u8.ToArray();
System.Net.HttpListener (3)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.DumpBuffer.cs (1)
35Log.DumpBuffer(IdOf(thisOrContextObject), memberName, buffer.Slice(0, Math.Min(buffer.Length, MaxDumpSize)).ToArray());
System\Net\Managed\HttpListenerRequest.Managed.cs (1)
68private static readonly byte[] s_100continue = "HTTP/1.1 100 Continue\r\n\r\n"u8.ToArray();
System\Net\Managed\HttpResponseStream.Managed.cs (1)
130private static readonly byte[] s_crlf = "\r\n"u8.ToArray();
System.Net.Mail (1)
System\Net\Mime\EncodedStreamFactory.cs (1)
43private static readonly byte[] s_footer = "?="u8.ToArray();
System.Net.NetworkInformation (2)
System\Net\NetworkInformation\LinuxNetworkInterface.cs (1)
107lni._physicalAddress = new PhysicalAddress(((ReadOnlySpan<byte>)nii->AddressBytes)[..nii->NumAddressBytes].ToArray());
System\Net\NetworkInformation\UnixNetworkInterface.cs (1)
101byte[] macAddress = ((ReadOnlySpan<byte>)llAddr->AddressBytes)[..llAddr->NumAddressBytes].ToArray();
System.Net.Primitives (1)
System\Net\IPAddress.cs (1)
159_numbers = numbers.ToArray();
System.Net.Quic (1)
System\Net\Quic\QuicStream.Stream.cs (1)
187WriteAsync(buffer.ToArray(), cts?.Token ?? default).AsTask().GetAwaiter().GetResult();
System.Net.Security (8)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.DumpBuffer.cs (1)
35Log.DumpBuffer(IdOf(thisOrContextObject), memberName, buffer.Slice(0, Math.Min(buffer.Length, MaxDumpSize)).ToArray());
System\Net\Security\SslApplicationProtocol.cs (3)
13private static readonly byte[] s_http3Utf8 = "h3"u8.ToArray(); 14private static readonly byte[] s_http2Utf8 = "h2"u8.ToArray(); 15private static readonly byte[] s_http11Utf8 = "http/1.1"u8.ToArray();
System\Net\Security\SslConnectionInfo.Linux.cs (1)
29ApplicationProtocol = alpn.ToArray();
System\Net\Security\TlsFrameHelper.cs (1)
552info.RawApplicationProtocols = extensionData.Slice(sizeof(short)).ToArray();
System\Net\Security\TlsSession.cs (1)
929_clientHelloBytesBuffered = input.Slice(0, frameLength).ToArray();
System\Net\Security\TlsSession.OpenSsl.cs (1)
88_options.ReplayPrefix = _socketInBuffer.ActiveReadOnlySpan.ToArray();
System.Net.ServerSentEvents (1)
System\Net\ServerSentEvents\SseFormatter.cs (1)
18private static readonly byte[] s_newLine = "\n"u8.ToArray();
System.Net.Sockets (1)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.DumpBuffer.cs (1)
35Log.DumpBuffer(IdOf(thisOrContextObject), memberName, buffer.Slice(0, Math.Min(buffer.Length, MaxDumpSize)).ToArray());
System.Private.CoreLib (19)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyCollection.cs (1)
248values.IsEmpty ? ReadOnlyCollection<T>.Empty : new ReadOnlyCollection<T>(values.ToArray());
src\runtime\src\libraries\System.Private.CoreLib\src\System\Enum.cs (1)
240return new ReadOnlySpan<string>(names).ToArray();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\StringInfo.cs (1)
224int[] retVal = builder.AsSpan().ToArray();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Net\WebUtility.cs (1)
410result = source.ToArray();
src\runtime\src\libraries\System.Private.CoreLib\src\System\ReadOnlyMemory.cs (1)
355public T[] ToArray() => Span.ToArray();
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\AhoCorasickBuilder.cs (1)
56return new AhoCorasick(_nodes.AsSpan().ToArray(), _startingAsciiChars);
src\runtime\src\libraries\System.Private.CoreLib\src\System\SpanDebugView.cs (1)
19_array = span.ToArray();
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (2)
473return copiedLength == totalLength ? result : Concat((ReadOnlySpan<string?>)values.ToArray()); 1141JoinCore(separator, values.ToArray().AsSpan());
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\DecoderFallback.cs (2)
210return (Fallback(remainingBytes.Slice(0, fallbackLength).ToArray(), index: _originalByteCount - remainingBytes.Length)) 217if (Fallback(remainingBytes.Slice(0, fallbackLength).ToArray(), index: _originalByteCount - remainingBytes.Length))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Encoding.cs (4)
576char[] arrChar = new ReadOnlySpan<char>(chars, count).ToArray(); 703char[] arrChar = new ReadOnlySpan<char>(chars, charCount).ToArray(); 778byte[] arrByte = new ReadOnlySpan<byte>(bytes, count).ToArray(); 852byte[] arrByte = new ReadOnlySpan<byte>(bytes, byteCount).ToArray();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\UTF7Encoding.cs (1)
61_base64Bytes = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"u8.ToArray();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (2)
6547Task<TResult>[] tasksCopy = tasks.ToArray(); 6740TTask[] tasksCopy = tasks.ToArray();
System\RuntimeType.NativeAot.cs (1)
114return new ReadOnlySpan<string>(ret).ToArray();
System.Private.DataContractSerialization (6)
System\Xml\EncodingStreamWrapper.cs (4)
34private static readonly byte[] s_encodingUTF8 = "utf-8"u8.ToArray(); 35private static readonly byte[] s_encodingUnicode = "utf-16"u8.ToArray(); 36private static readonly byte[] s_encodingUnicodeLE = "utf-16le"u8.ToArray(); 37private static readonly byte[] s_encodingUnicodeBE = "utf-16be"u8.ToArray();
System\Xml\PrefixHandle.cs (1)
28private static readonly byte[] s_prefixBuffer = "abcdefghijklmnopqrstuvwxyz"u8.ToArray();
System\Xml\XmlBaseReader.cs (1)
2738byte[] xmlBuffer = "xmlhttp://www.w3.org/XML/1998/namespace"u8.ToArray();
System.Private.TypeLoader (1)
src\runtime\src\coreclr\tools\Common\Internal\Text\Utf8Span.cs (1)
23public byte[] ToArray() => _value.ToArray();
System.Private.Uri (2)
System\Uri.cs (2)
947segments = pathSegments.AsSpan().ToArray(); 4210char[] chars = str.ToArray();
System.Private.Windows.Core (1)
System\TypeExtensions.cs (1)
274name.SetPublicKey(publicKey.ToArray());
System.Reflection.Emit (1)
System\Reflection\Emit\CustomAttributeWrapper.cs (1)
17_binaryAttribute = binaryAttribute.ToArray(); // TODO: Update to BlobHandle when public API public APi for MetadataBuilder.GetOrAddBlob(ReadOnlySpan<byte>) added
System.Reflection.Metadata (2)
System\Reflection\Internal\Utilities\MemoryBlock.cs (1)
510return new ReadOnlySpan<byte>(Pointer + offset, byteCount).ToArray();
System\Reflection\Metadata\MetadataReader.WinMD.cs (1)
14internal static readonly byte[] WinRTPrefix = "<WinRT>"u8.ToArray();
System.Reflection.MetadataLoadContext (2)
System\Reflection\TypeLoading\Types\RoExceptionType.cs (2)
20_ns = ns.ToArray(); 21_name = name.ToArray();
System.Resources.Extensions (1)
System\Resources\Extensions\BinaryFormat\Deserializer\ArrayRecordDeserializer.cs (1)
44_lengths = arrayRecord.Lengths.ToArray();
System.Runtime.Numerics (1)
System\Numerics\BigInteger.cs (1)
567_bits = value.ToArray();
System.Security.Cryptography (88)
src\runtime\src\libraries\Common\src\Interop\Windows\BCrypt\Interop.Blobs.cs (2)
67byte[] value = new ReadOnlySpan<byte>(blob, offset, count).ToArray(); 77byte[] value = blob.Slice(offset, count).ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.xml.cs (1)
101decoded.Parameters = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\AttributeAsn.xml.cs (1)
111tmpItem = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\DigestInfoAsn.xml.cs (1)
81decoded.Digest = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml.cs (1)
175decoded.UniversalString = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\EncryptedPrivateKeyInfoAsn.xml.cs (1)
81decoded.EncryptedData = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\GeneralNameAsn.xml.cs (3)
243decoded.X400Address = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray(); 249decoded.DirectoryName = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray(); 268decoded.IPAddress = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\OtherNameAsn.xml.cs (1)
98decoded.Value = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml.cs (1)
98decoded.CertValue = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\MacData.xml.cs (1)
118decoded.MacSalt = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml.cs (1)
114decoded.BagValue = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\SecretBagAsn.xml.cs (1)
98decoded.SecretValue = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\CertificateChoiceAsn.xml.cs (4)
215decoded.Certificate = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray(); 220decoded.ExtendedCertificate = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray(); 225decoded.AttributeCertificateV1 = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray(); 230decoded.AttributeCertificateV2 = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml.cs (1)
98decoded.Content = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncapsulatedContentInfoAsn.xml.cs (1)
105decoded.Content = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml.cs (1)
99decoded.EncryptedContent = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\IssuerAndSerialNumberAsn.xml.cs (2)
99decoded.Issuer = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray(); 101decoded.SerialNumber = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\OtherCertificateFormat.xml.cs (1)
93decoded.OtherCert = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignedDataAsn.xml.cs (1)
189tmpItem = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerIdentifierAsn.xml.cs (1)
127decoded.SubjectKeyIdentifier = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerInfoAsn.xml.cs (2)
134decoded.SignedAttributes = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray(); 141decoded.SignatureValue = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\PrivateKeyInfoAsn.xml.cs (1)
105decoded.PrivateKey = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Rc2CbcParameters.xml.cs (1)
86decoded.Iv = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\SubjectPublicKeyInfoAsn.xml.cs (1)
81decoded.SubjectPublicKey = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\X509ExtensionAsn.xml.cs (1)
131decoded.ExtnValue = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsa.cs (1)
1364return ExportPkcs8PrivateKeyCallback(static pkcs8 => pkcs8.ToArray());
src\runtime\src\libraries\Common\src\System\Security\Cryptography\KeyBlobHelpers.cs (2)
15return span.Slice(1).ToArray(); 18return span.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLDsa.cs (1)
749return ExportPkcs8PrivateKeyCallback(static pkcs8 => pkcs8.ToArray());
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLKem.cs (1)
733return ExportPkcs8PrivateKeyCallback(static pkcs8 => pkcs8.ToArray());
src\runtime\src\libraries\Common\src\System\Security\Cryptography\SlhDsa.cs (1)
584return ExportPkcs8PrivateKeyCallback(static pkcs8 => pkcs8.ToArray());
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X25519DiffieHellman.cs (1)
434return ExportPkcs8PrivateKeyCallback(static pkcs8 => pkcs8.ToArray());
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X25519DiffieHellmanImplementation.Windows.cs (1)
177requiredReduction ? source.ToArray() : null);
System\Security\Cryptography\AesImplementation.cs (1)
41get => GetKey().UseKey("", static (_, key) => key.ToArray());
System\Security\Cryptography\AsnEncodedData.cs (1)
146_rawData = rawData.ToArray();
System\Security\Cryptography\AsymmetricAlgorithm.cs (2)
799return writtenSpan.ToArray(); 829return writtenSpan.ToArray();
System\Security\Cryptography\AsymmetricAlgorithmHelpers.Der.cs (1)
43return signature.ToArray();
System\Security\Cryptography\BasicSymmetricCipherLiteBCrypt.cs (1)
31_currentIv = iv.ToArray();
System\Security\Cryptography\CngProperty.cs (1)
45_value = value.ToArray();
System\Security\Cryptography\CngSymmetricAlgorithmCore.cs (1)
317byte[] key = rgbKey.ToArray();
System\Security\Cryptography\DSA.cs (4)
442byte[] sig = CreateSignature(hash.ToArray()); 509byte[] sig = CreateSignature(hash.ToArray()); 817VerifySignature(hash.ToArray(), signature.ToArray());
System\Security\Cryptography\EccKeyFormatHelper.cs (8)
136x = publicKeyBytes.Slice(1, key.PrivateKey.Length).ToArray(); 137y = publicKeyBytes.Slice(1 + key.PrivateKey.Length).ToArray(); 162D = key.PrivateKey.ToArray(), 210X = publicKeyBytes.Slice(1, fieldWidth).ToArray(), 211Y = publicKeyBytes.Slice(1 + fieldWidth).ToArray(), 316primeOrPoly = primeValue.ToArray(); 429curve.G.X = baseSpan.Slice(1, primeOrPoly.Length).ToArray(); 430curve.G.Y = baseSpan.Slice(1 + primeOrPoly.Length).ToArray();
System\Security\Cryptography\ECDsa.cs (3)
909hashSpan = HashData(data.ToArray(), 0, data.Length, hashAlgorithm); 1104byte[] result = SignHash(hash.ToArray()); 1195return VerifyHash(hash.ToArray(), sig);
System\Security\Cryptography\HashProviderCng.cs (1)
34_key = key.ToArray();
System\Security\Cryptography\KeyBlobHelpers.cs (2)
19return span.ToArray(); 26return span.Slice(1).ToArray();
System\Security\Cryptography\RSA.cs (5)
104byte[] result = Decrypt(data.ToArray(), padding); 119byte[] result = Encrypt(data.ToArray(), padding); 343byte[] result = SignHash(hash.ToArray(), hashAlgorithm, padding); 357VerifyHash(hash.ToArray(), signature.ToArray(), hashAlgorithm, padding);
System\Security\Cryptography\SymmetricAlgorithm.cs (1)
259Key = key.ToArray();
System\Security\Cryptography\X509Certificates\Asn1\CertificateAsn.xml.cs (1)
84decoded.SignatureValue = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
System\Security\Cryptography\X509Certificates\Asn1\CertificationRequestAsn.xml.cs (1)
84decoded.SignatureValue = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
System\Security\Cryptography\X509Certificates\Asn1\CertificationRequestInfoAsn.xml.cs (1)
113decoded.Subject = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
System\Security\Cryptography\X509Certificates\Asn1\PolicyInformationAsn.xml.cs (1)
101decoded.PolicyQualifiers = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
System\Security\Cryptography\X509Certificates\Asn1\TbsCertificateAsn.xml.cs (5)
213decoded.SerialNumber = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray(); 221decoded.Issuer = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray(); 229decoded.Subject = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray(); 237decoded.IssuerUniqueId = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray(); 252decoded.SubjectUniqueId = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.cs (3)
202Serial = serialNumber.ToArray(), 309Serial = revokedCertificate.ReadIntegerBytes().ToArray(); 320Extensions = revokedCertificate.ReadEncodedValue().ToArray();
System\Security\Cryptography\X509Certificates\X509AuthorityKeyIdentifierExtension.cs (2)
540byte[] rawIssuer = aki.PeekEncodedValue().ToArray(); 577_serialNumber = aki.ReadIntegerBytes(nextTag).ToArray();
System\Security\Cryptography\X509Certificates\X509SubjectKeyIdentifierExtension.cs (1)
122return contents.ToArray();
System.Security.Cryptography.Cose (1)
System\Security\Cryptography\Cose\CoseHeaderValue.cs (1)
39var encodedValueCopy = new ReadOnlyMemory<byte>(encodedValue.ToArray());
System.Security.Cryptography.Pkcs (57)
Internal\Cryptography\Pal\AnyOS\ManagedPal.cs (1)
52return contents.ToArray();
Internal\Cryptography\Pal\AnyOS\ManagedPal.Decode.cs (1)
92return parsedContentInfo.Content.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.xml.cs (1)
101decoded.Parameters = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\AttributeAsn.xml.cs (1)
111tmpItem = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\DigestInfoAsn.xml.cs (1)
81decoded.Digest = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml.cs (1)
175decoded.UniversalString = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\EncryptedPrivateKeyInfoAsn.xml.cs (1)
81decoded.EncryptedData = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\GeneralNameAsn.xml.cs (3)
243decoded.X400Address = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray(); 249decoded.DirectoryName = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray(); 268decoded.IPAddress = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\OtherNameAsn.xml.cs (1)
98decoded.Value = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml.cs (1)
98decoded.CertValue = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\MacData.xml.cs (1)
118decoded.MacSalt = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml.cs (1)
114decoded.BagValue = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\SecretBagAsn.xml.cs (1)
98decoded.SecretValue = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\CertificateChoiceAsn.xml.cs (4)
215decoded.Certificate = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray(); 220decoded.ExtendedCertificate = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray(); 225decoded.AttributeCertificateV1 = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray(); 230decoded.AttributeCertificateV2 = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml.cs (1)
98decoded.Content = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncapsulatedContentInfoAsn.xml.cs (1)
105decoded.Content = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml.cs (1)
99decoded.EncryptedContent = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\IssuerAndSerialNumberAsn.xml.cs (2)
99decoded.Issuer = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray(); 101decoded.SerialNumber = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\OtherCertificateFormat.xml.cs (1)
93decoded.OtherCert = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignedDataAsn.xml.cs (1)
189tmpItem = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerIdentifierAsn.xml.cs (1)
127decoded.SubjectKeyIdentifier = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerInfoAsn.xml.cs (2)
134decoded.SignedAttributes = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray(); 141decoded.SignatureValue = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\PrivateKeyInfoAsn.xml.cs (1)
105decoded.PrivateKey = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Rc2CbcParameters.xml.cs (1)
86decoded.Iv = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\SubjectPublicKeyInfoAsn.xml.cs (1)
81decoded.SubjectPublicKey = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\X509ExtensionAsn.xml.cs (1)
131decoded.ExtnValue = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
System\Security\Cryptography\Pkcs\Asn1\CadesIssuerSerial.xml.cs (1)
103decoded.SerialNumber = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
System\Security\Cryptography\Pkcs\Asn1\EssCertId.xml.cs (1)
85decoded.Hash = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
System\Security\Cryptography\Pkcs\Asn1\EssCertIdV2.xml.cs (1)
128decoded.Hash = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
System\Security\Cryptography\Pkcs\Asn1\KeyAgreeRecipientInfoAsn.xml.cs (1)
120decoded.Ukm = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
System\Security\Cryptography\Pkcs\Asn1\KeyTransRecipientInfoAsn.xml.cs (1)
92decoded.EncryptedKey = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
System\Security\Cryptography\Pkcs\Asn1\MessageImprint.xml.cs (1)
81decoded.HashedMessage = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
System\Security\Cryptography\Pkcs\Asn1\OriginatorIdentifierOrKeyAsn.xml.cs (1)
138decoded.SubjectKeyIdentifier = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
System\Security\Cryptography\Pkcs\Asn1\OriginatorInfoAsn.xml.cs (1)
144tmpItem = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
System\Security\Cryptography\Pkcs\Asn1\OriginatorPublicKeyAsn.xml.cs (1)
81decoded.PublicKey = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
System\Security\Cryptography\Pkcs\Asn1\OtherKeyAttributeAsn.xml.cs (1)
101decoded.KeyAttr = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
System\Security\Cryptography\Pkcs\Asn1\PkiStatusInfo.xml.cs (1)
115decoded.StatusString = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
System\Security\Cryptography\Pkcs\Asn1\PolicyQualifierInfo.xml.cs (1)
93decoded.Qualifier = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
System\Security\Cryptography\Pkcs\Asn1\RecipientEncryptedKeyAsn.xml.cs (1)
81decoded.EncryptedKey = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
System\Security\Cryptography\Pkcs\Asn1\RecipientIdentifierAsn.xml.cs (1)
127decoded.SubjectKeyIdentifier = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
System\Security\Cryptography\Pkcs\Asn1\RecipientKeyIdentifier.xml.cs (1)
92decoded.SubjectKeyIdentifier = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
System\Security\Cryptography\Pkcs\Asn1\Rfc3161TimeStampReq.xml.cs (1)
163decoded.Nonce = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
System\Security\Cryptography\Pkcs\Asn1\Rfc3161TimeStampResp.xml.cs (1)
94decoded.TimeStampToken = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
System\Security\Cryptography\Pkcs\Asn1\Rfc3161TstInfo.xml.cs (2)
171decoded.SerialNumber = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray(); 197decoded.Nonce = rebindSpan.Overlaps(tmpSpan, out offset) ? rebind.Slice(offset, tmpSpan.Length) : tmpSpan.ToArray();
System\Security\Cryptography\Pkcs\CmsSignature.ECDsa.cs (1)
200dataHash.ToArray()
System\Security\Cryptography\Pkcs\CmsSignature.RSA.cs (1)
154dataHash.ToArray(),
System\Security\Cryptography\Pkcs\Rfc3161TimestampRequest.cs (1)
364_encodedBytes = firstElement.ToArray(),
System\Security\Cryptography\Pkcs\SignedCms.cs (1)
224return contentInfo.Content.ToArray();
System\Security\Cryptography\Pkcs\SubjectIdentifier.cs (1)
82var name = new X500DistinguishedName(issuerNameSpan.ToArray());
System.Security.Cryptography.Xml (10)
System\Security\Cryptography\Xml\CanonicalXmlAttribute.cs (1)
40rgbData = "\""u8.ToArray();
System\Security\Cryptography\Xml\CanonicalXmlComment.cs (4)
55rgbData = "(char) 10"u8.ToArray(); 59rgbData = "<!--"u8.ToArray(); 63rgbData = "-->"u8.ToArray(); 67rgbData = "(char) 10"u8.ToArray();
System\Security\Cryptography\Xml\CanonicalXmlElement.cs (1)
149rgbData = ">"u8.ToArray();
System\Security\Cryptography\Xml\CanonicalXmlProcessingInstruction.cs (4)
50rgbData = "(char) 10"u8.ToArray(); 54rgbData = "<?"u8.ToArray(); 66rgbData = "?>"u8.ToArray(); 71rgbData = "(char) 10"u8.ToArray();
System.Security.Principal.Windows (1)
System\Security\Principal\SID.cs (1)
349_subAuthorities = subAuthorities.ToArray();
System.Text.Json (21)
System\Text\Json\Document\JsonDocument.Parse.cs (4)
683owned = valueSpan.ToArray(); 697s_falseLiteral ??= Create(JsonConstants.FalseValue.ToArray()); 700s_trueLiteral ??= Create(JsonConstants.TrueValue.ToArray()); 704s_nullLiteral ??= Create(JsonConstants.NullValue.ToArray());
System\Text\Json\JsonEncodedText.cs (1)
134return new JsonEncodedText(utf8Value.ToArray());
System\Text\Json\Nodes\JsonValueOfJsonPrimitive.cs (1)
26byte[] numberValue = reader.HasValueSequence ? reader.ValueSequence.ToArray() : reader.ValueSpan.ToArray();
System\Text\Json\Serialization\JsonSerializer.Read.HandleMetadata.cs (4)
20private static readonly byte[] s_idPropertyName = "$id"u8.ToArray(); 21private static readonly byte[] s_refPropertyName = "$ref"u8.ToArray(); 22private static readonly byte[] s_typePropertyName = "$type"u8.ToArray(); 23private static readonly byte[] s_valuesPropertyName = "$values"u8.ToArray();
System\Text\Json\Serialization\JsonSerializer.Write.ByteArray.cs (2)
138return output.WrittenSpan.ToArray(); 155return output.WrittenSpan.ToArray();
System\Text\Json\Serialization\Metadata\JsonTypeInfo.Cache.cs (1)
154utf8PropertyName = propertyName.ToArray();
System\Text\Json\ThrowHelper.Node.cs (1)
59string concatenatedNames = supportedTypeNames.Length == 1 ? supportedTypeNames[0] : string.Join(", ", supportedTypeNames.ToArray());
System\Text\Json\ThrowHelper.Serialization.cs (7)
466state.Current.JsonPropertyName = propertyName.ToArray(); 746state.Current.JsonPropertyName = propertyName.ToArray(); 753state.Current.JsonPropertyName = propertyName.ToArray(); 772state.Current.JsonPropertyName = propertyName.ToArray(); 779state.Current.JsonPropertyName = propertyName.ToArray(); 793state.Current.JsonPropertyName = propertyName.ToArray(); 820state.Current.JsonPropertyName = reader.HasValueSequence ? reader.ValueSequence.ToArray() : reader.ValueSpan.ToArray();
System.Text.RegularExpressions (5)
System\Text\RegularExpressions\RegexCompiler.cs (2)
1032LoadSearchValues(asciiChars.AsSpan().ToArray()); 6498LoadSearchValues(chars.ToArray());
System\Text\RegularExpressions\RegexReplacement.cs (2)
90_strings = strings.AsSpan().ToArray(); 91_rules = rules.AsSpan().ToArray();
System\Text\RegularExpressions\RegexWriter.cs (1)
112int[] emitted = _emitted.AsSpan().ToArray();
System.Text.RegularExpressions.Generator (1)
RegexGenerator.Emitter.cs (1)
536char[] chars = charsSpan.ToArray();
System.Web.HttpUtility (1)
System\Web\Util\HttpEncoder.cs (1)
406return bytes.ToArray();