247 references to Empty
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PathHelper.cs (1)
18return ReadOnlySpan<char>.Empty;
ILCompiler.TypeSystem (1)
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\SymbolReader\PortablePdbSymbolReader.cs (1)
224return ReadOnlySpan<byte>.Empty;
Microsoft.AspNetCore.Components.Web (1)
Routing\NavLink.cs (1)
172return ReadOnlySpan<char>.Empty;
Microsoft.AspNetCore.OpenApi (1)
Services\Schemas\OpenApiSchemaService.cs (1)
694? ReadOnlySpan<char>.Empty
Microsoft.AspNetCore.Routing (1)
Matching\HostMatcherPolicy.cs (1)
95var port = ReadOnlySpan<char>.Empty;
Microsoft.AspNetCore.Server.HttpSys (1)
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
105return ReadOnlySpan<long>.Empty;
Microsoft.AspNetCore.Server.IIS (1)
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
105return ReadOnlySpan<long>.Empty;
Microsoft.AspNetCore.WebUtilities (1)
QueryHelpers.cs (1)
85var anchorText = ReadOnlySpan<char>.Empty;
Microsoft.Build (3)
Evaluation\Expander.Function.cs (3)
218ReadOnlySpan<char> expressionRoot = expressionFunction == null ? ReadOnlySpan<char>.Empty : expressionFunction.AsSpan(); 897ReadOnlySpan<char> remainder = ReadOnlySpan<char>.Empty; 904ReadOnlySpan<char> expressionSubstringAsSpan = argumentStartIndex > -1 ? expressionFunctionAsSpan.Slice(methodStartIndex, argumentStartIndex - methodStartIndex) : ReadOnlySpan<char>.Empty;
Microsoft.Build.Framework (2)
Utilities\FileMatcher.cs (1)
1693if (input == ReadOnlySpan<char>.Empty)
Utilities\ProcessExtensions.cs (1)
521=> sysctl(name, (uint)name.Length, oldp, ref oldlenp, ReadOnlySpan<byte>.Empty, 0);
Microsoft.CodeAnalysis.Analyzers (4)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (3)
110next = ReadOnlySpan<char>.Empty; 120remaining = ReadOnlySpan<char>.Empty; 142remaining = ReadOnlySpan<char>.Empty;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PathHelper.cs (1)
18return ReadOnlySpan<char>.Empty;
Microsoft.CodeAnalysis.AnalyzerUtilities (4)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (3)
110next = ReadOnlySpan<char>.Empty; 120remaining = ReadOnlySpan<char>.Empty; 142remaining = ReadOnlySpan<char>.Empty;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PathHelper.cs (1)
18return ReadOnlySpan<char>.Empty;
Microsoft.CodeAnalysis.NetAnalyzers (4)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (3)
112next = ReadOnlySpan<char>.Empty; 122remaining = ReadOnlySpan<char>.Empty; 144remaining = ReadOnlySpan<char>.Empty;
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\PathHelper.cs (1)
18return ReadOnlySpan<char>.Empty;
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\Intermediate\IntermediateNodeWalker.Stack.cs (1)
31? ReadOnlySpan<IntermediateNode>.Empty
Microsoft.CodeAnalysis.ResxSourceGenerator (4)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (3)
110next = ReadOnlySpan<char>.Empty; 120remaining = ReadOnlySpan<char>.Empty; 142remaining = ReadOnlySpan<char>.Empty;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PathHelper.cs (1)
18return ReadOnlySpan<char>.Empty;
Microsoft.ML.Tokenizers (12)
Model\BertTokenizer.cs (4)
142EncodeToIds(text, ReadOnlySpan<char>.Empty, addSpecialTokens: true, considerPreTokenization, considerNormalization); 163EncodeToIds(text, ReadOnlySpan<char>.Empty, addSpecialTokens, considerPreTokenization, considerNormalization); 187EncodeToIds(text, ReadOnlySpan<char>.Empty, maxTokenCount, addSpecialTokens: true, out normalizedText, out charsConsumed, considerPreTokenization, considerNormalization); 214EncodeToIds(text, ReadOnlySpan<char>.Empty, maxTokenCount, addSpecialTokens, out normalizedText, out charsConsumed, considerPreTokenization, considerNormalization);
Model\CodeGenTokenizer.cs (3)
304EncodeResults<EncodedToken> result = EncodeToTokens(text, ReadOnlySpan<char>.Empty, addPrefixSpace, addBeginningOfSentence, addEndOfSentence, considerPreTokenization, considerNormalization); 514return EncodeToIds(text, ReadOnlySpan<char>.Empty, addPrefixSpace, addBeginningOfSentence, addEndOfSentence, considerPreTokenization, considerNormalization, out _, out _); 547return EncodeToIds(text, ReadOnlySpan<char>.Empty, addPrefixSpace, addBeginningOfSentence, addEndOfSentence, considerPreTokenization, considerNormalization, out normalizedText, out charsConsumed, maxTokenCount);
Model\SentencePieceTokenizer.cs (4)
253=> _model.CountTokens(text, ReadOnlySpan<char>.Empty, addBeginningOfSentence, addEndOfSentence, considerNormalization, out _, out _, int.MaxValue); 280=> _model.CountTokens(text, ReadOnlySpan<char>.Empty, addBeginningOfSentence, addEndOfSentence, considerNormalization, out normalizedText, out charsConsumed, maxTokenCount); 342tokenCount = _model.CountTokens(text, ReadOnlySpan<char>.Empty, addBeginningOfSentence, addEndOfSentence, considerNormalization, out normalizedText, out int charsConsumed, maxTokenCount); 383=> _model.GetIndexByTokenCountFromEnd(text, ReadOnlySpan<char>.Empty, addBeginningOfSentence, addEndOfSentence, maxTokenCount, considerNormalization, out normalizedText, out tokenCount);
SentencepieceModel.cs (1)
166internal ReadOnlySpan<byte> Span => data is null ? ReadOnlySpan<byte>.Empty : data.AsSpan(offset, length);
PresentationBuildTasks (5)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\ReflectionUtils.cs (5)
55return ReadOnlySpan<char>.Empty; 77dirtyName = !AssemblyNameInfo.TryParse(dirtyName, out AssemblyNameInfo? result) ? ReadOnlySpan<char>.Empty : result.Name; 100assemblyVersion = ReadOnlySpan<char>.Empty; 101assemblyToken = ReadOnlySpan<char>.Empty; 124assemblyToken = ReadOnlySpan<char>.Empty;
PresentationFramework (3)
MS\Internal\Globalization\BamlResourceContent.cs (3)
186return ReadOnlySpan<BamlStringToken>.Empty; 201return ReadOnlySpan<BamlStringToken>.Empty; // error 241return ReadOnlySpan<BamlStringToken>.Empty; // error
Roslyn.Diagnostics.Analyzers (4)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (3)
110next = ReadOnlySpan<char>.Empty; 120remaining = ReadOnlySpan<char>.Empty; 142remaining = ReadOnlySpan<char>.Empty;
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PathHelper.cs (1)
18return ReadOnlySpan<char>.Empty;
System.Diagnostics.DiagnosticSource (2)
System\Diagnostics\W3CPropagator.cs (2)
117ReadOnlySpan<char> nextBaggageSpan = entrySeparator >= 0 ? baggageSpan.Slice(entrySeparator + 1) : ReadOnlySpan<char>.Empty; 170traceStateSpan = commaIndex >= 0 ? traceStateSpan.Slice(commaIndex + 1) : ReadOnlySpan<char>.Empty;
System.Formats.Asn1 (5)
System\Formats\Asn1\AsnDecoder.BitString.cs (1)
368value = ReadOnlySpan<byte>.Empty;
System\Formats\Asn1\AsnWriter.cs (1)
339return ReadOnlySpan<byte>.Empty;
System\Formats\Asn1\AsnWriter.NamedBitList.cs (2)
168WriteBitString(ReadOnlySpan<byte>.Empty, tag: tag); 194WriteBitString(ReadOnlySpan<byte>.Empty, tag: tag);
System\Formats\Asn1\WellKnownOids.cs (1)
340_ => ReadOnlySpan<byte>.Empty
System.IO.Compression (2)
System\IO\Compression\Zstandard\ZstandardEncoder.cs (1)
228return CompressCore(ReadOnlySpan<byte>.Empty, destination, out _, out bytesWritten,
System\IO\Compression\Zstandard\ZstandardStream.cs (1)
169WriteCore(ReadOnlySpan<byte>.Empty, isFinalBlock: true, throwOnActiveRwOp: false);
System.IO.Compression.Brotli (2)
System\IO\Compression\BrotliStream.cs (1)
77WriteCore(ReadOnlySpan<byte>.Empty, isFinalBlock: true);
System\IO\Compression\enc\BrotliEncoder.cs (1)
129public OperationStatus Flush(Span<byte> destination, out int bytesWritten) => Compress(ReadOnlySpan<byte>.Empty, destination, out _, out bytesWritten, BrotliEncoderOperation.Flush);
System.IO.Hashing (2)
System\IO\Hashing\XxHash32.cs (1)
144ReadOnlySpan<byte> remaining = ReadOnlySpan<byte>.Empty;
System\IO\Hashing\XxHash64.cs (1)
144ReadOnlySpan<byte> remaining = ReadOnlySpan<byte>.Empty;
System.Net.Primitives (1)
src\runtime\src\libraries\Common\src\System\Net\IPv6AddressHelper.Common.cs (1)
324scopeId = ReadOnlySpan<TChar>.Empty;
System.Net.Quic (2)
src\runtime\src\libraries\Common\src\System\Net\IPv6AddressHelper.Common.cs (1)
324scopeId = ReadOnlySpan<TChar>.Empty;
System\Net\Quic\Internal\MsQuicTlsSecret.cs (1)
56: ReadOnlySpan<byte>.Empty;
System.Net.Security (18)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Ssl.cs (3)
76return ReadOnlySpan<byte>.Empty; 555writeBio = Interop.Ssl.BioNewSocketReplay(socket!, ReadOnlySpan<byte>.Empty); 562writeBio = Interop.Ssl.BioNewSocketReplay(socket!, ReadOnlySpan<byte>.Empty);
src\runtime\src\libraries\Common\src\System\Net\IPv6AddressHelper.Common.cs (1)
324scopeId = ReadOnlySpan<TChar>.Empty;
System\Net\NegotiateAuthenticationPal.ManagedNtlm.cs (1)
383return ReadOnlySpan<byte>.Empty;
System\Net\Security\SslStream.Protocol.cs (2)
878ReadOnlySpan<byte>.Empty, 907ReadOnlySpan<byte>.Empty,
System\Net\Security\SslStream.TlsSessionWedge.cs (2)
91token = _tlsSession.HandshakeStepForSslStream(ReadOnlySpan<byte>.Empty, out _); 112token = _tlsSession.HandshakeStepForSslStream(ReadOnlySpan<byte>.Empty, out _);
System\Net\Security\TlsFrameHelper.cs (3)
816return (numberOfBytesToSkip < bytes.Length) ? bytes.Slice(numberOfBytesToSkip) : ReadOnlySpan<byte>.Empty; 829return ReadOnlySpan<byte>.Empty; 843return ReadOnlySpan<byte>.Empty;
System\Net\Security\TlsSession.cs (5)
1004ReadOnlySpan<byte> rawAlpn = ReadOnlySpan<byte>.Empty; 1031ReadOnlySpan<byte>.Empty, 1042ReadOnlySpan<byte>.Empty, 1497ReadOnlySpan<byte>.Empty, 1508ReadOnlySpan<byte>.Empty,
System\Net\Security\TlsSession.OpenSsl.cs (1)
130_peekBio = Interop.Ssl.BioNewSocketReplay(_pendingFdSocket, ReadOnlySpan<byte>.Empty);
System.Net.Sockets (5)
System\Net\Sockets\Socket.cs (2)
1272SendFile(fileName, ReadOnlySpan<byte>.Empty, ReadOnlySpan<byte>.Empty, TransmitFileOptions.UseDefaultWorkerThread);
System\Net\Sockets\SocketPal.Unix.cs (3)
1190TryCompleteSendTo(handle, bufferList, ref bufferIndex, ref offset, socketFlags, ReadOnlySpan<byte>.Empty, ref bytesTransferred, out errorCode); 1203TryCompleteSendTo(handle, buffer, ref offset, ref count, socketFlags, ReadOnlySpan<byte>.Empty, ref bytesTransferred, out errorCode); 1216TryCompleteSendTo(handle, buffer, socketFlags, ReadOnlySpan<byte>.Empty, ref bytesTransferred, out errorCode);
System.Numerics.Tensors (9)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IIndexOfMinMaxOperator.cs (9)
123span = ReadOnlySpan<T>.Empty; 191span = ReadOnlySpan<T>.Empty; 268span = ReadOnlySpan<T>.Empty; 354span = ReadOnlySpan<T>.Empty; 422span = ReadOnlySpan<T>.Empty; 499span = ReadOnlySpan<T>.Empty; 585span = ReadOnlySpan<T>.Empty; 653span = ReadOnlySpan<T>.Empty; 730span = ReadOnlySpan<T>.Empty;
System.Private.CoreLib (26)
src\runtime\src\libraries\Common\src\System\Number.Parsing.Common.cs (3)
45ReadOnlySpan<TChar> currSymbol = ReadOnlySpan<TChar>.Empty; // currency symbol from NumberFormatInfo. 88currSymbol = ReadOnlySpan<TChar>.Empty; 257currSymbol = ReadOnlySpan<TChar>.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
423/// <param name="result">When this method returns, contains a double-precision floating-point number equivalent of the numeric value or symbol contained in <paramref name="utf8Text" /> if the conversion succeeded or zero if the conversion failed. The conversion fails if the <paramref name="utf8Text" /> is <see cref="ReadOnlySpan{T}.Empty" /> or is not in a valid format. This parameter is passed uninitialized; any value originally supplied in result will be overwritten.</param>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Icu.cs (1)
155_sRealName = NormalizeCultureName(_sWindowsName, indexOfExtensions > 0 ? _sRealName.AsSpan(indexOfExtensions) : ReadOnlySpan<char>.Empty, _sRealName, out int collationStart);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (1)
6236SetBadFormatSpecifierFailure(ReadOnlySpan<char>.Empty);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Guid.cs (2)
945return ReadOnlySpan<TChar>.Empty; 976return ReadOnlySpan<TChar>.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Half.cs (1)
393/// <param name="result">When this method returns, contains a half-precision floating-point number equivalent of the numeric value or symbol contained in <paramref name="utf8Text" /> if the conversion succeeded or zero if the conversion failed. The conversion fails if the <paramref name="utf8Text" /> is <see cref="ReadOnlySpan{T}.Empty" /> or is not in a valid format. This parameter is passed uninitialized; any value originally supplied in result will be overwritten.</param>
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemEntry.Unix.cs (2)
45entry._fullPath = ReadOnlySpan<char>.Empty; 46entry._fileName = ReadOnlySpan<char>.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Path.cs (4)
152return ReadOnlySpan<char>.Empty; 155return end >= 0 ? path.Slice(0, end) : ReadOnlySpan<char>.Empty; 207return ReadOnlySpan<char>.Empty; 212return ReadOnlySpan<char>.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Path.Unix.cs (1)
148return IsPathRooted(path) ? PathInternal.DirectorySeparatorCharAsString.AsSpan() : ReadOnlySpan<char>.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StringStream.cs (1)
192GetEncoder().Convert(ReadOnlySpan<char>.Empty, _pendingBytes, flush: true, out _, out int flushBytes, out _);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (1)
296/// <param name="result">When this method returns, contains a <see cref="BFloat16"/> number equivalent of the numeric value or symbol contained in <paramref name="utf8Text" /> if the conversion succeeded or zero if the conversion failed. The conversion fails if the <paramref name="utf8Text" /> is <see cref="ReadOnlySpan{T}.Empty" /> or is not in a valid format. This parameter is passed uninitialized; any value originally supplied in result will be overwritten.</param>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (2)
702/// <param name="result">When this method returns, contains a floating-point number equivalent of the numeric value or symbol contained in <paramref name="s" /> if the conversion succeeded or zero if the conversion failed. The conversion fails if the <paramref name="s" /> is <see cref="ReadOnlySpan{T}.Empty" /> or is not in a valid format. This parameter is passed uninitialized; any value originally supplied in result will be overwritten.</param> 712/// <param name="result">When this method returns, contains a floating-point number equivalent of the numeric value or symbol contained in <paramref name="utf8Text" /> if the conversion succeeded or zero if the conversion failed. The conversion fails if the <paramref name="utf8Text" /> is <see cref="ReadOnlySpan{T}.Empty" /> or is not in a valid format. This parameter is passed uninitialized; any value originally supplied in result will be overwritten.</param>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyLoadContext.cs (1)
459return ReadOnlySpan<byte>.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Security\SecureString.cs (1)
22Initialize(ReadOnlySpan<char>.Empty);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
418/// <param name="result">When this method returns, contains a single-precision floating-point number equivalent of the numeric value or symbol contained in <paramref name="utf8Text" /> if the conversion succeeded or zero if the conversion failed. The conversion fails if the <paramref name="utf8Text" /> is <see cref="ReadOnlySpan{T}.Empty" /> or is not in a valid format. This parameter is passed uninitialized; any value originally supplied in result will be overwritten.</param>
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (1)
160JoinCore(ReadOnlySpan<char>.Empty, values);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Encoding.Internal.cs (2)
617chars = ReadOnlySpan<char>.Empty; 1219bytes = ReadOnlySpan<byte>.Empty;
System.Private.Uri (1)
src\runtime\src\libraries\Common\src\System\Net\IPv6AddressHelper.Common.cs (1)
324scopeId = ReadOnlySpan<TChar>.Empty;
System.Reflection.Metadata (1)
System\Reflection\Metadata\Ecma335\MetadataBuilder.Heaps.cs (1)
120_blobs.GetOrAdd(ReadOnlySpan<byte>.Empty, ImmutableArray<byte>.Empty, default, out _);
System.Resources.Extensions (2)
System\Resources\Extensions\TypeNameComparer.cs (2)
80typeSpan1 = typeSpan1.Length > type1.Length ? typeSpan1.Slice(type1.Length + 1).TrimStart(s_whiteSpaceChars) : ReadOnlySpan<char>.Empty; 81typeSpan2 = typeSpan2.Length > type2.Length ? typeSpan2.Slice(type2.Length + 1).TrimStart(s_whiteSpaceChars) : ReadOnlySpan<char>.Empty;
System.Runtime.Numerics (3)
src\runtime\src\libraries\Common\src\System\Number.Parsing.Common.cs (3)
45ReadOnlySpan<TChar> currSymbol = ReadOnlySpan<TChar>.Empty; // currency symbol from NumberFormatInfo. 88currSymbol = ReadOnlySpan<TChar>.Empty; 257currSymbol = ReadOnlySpan<TChar>.Empty;
System.Security.Cryptography (74)
src\runtime\src\libraries\Common\src\Interop\Windows\NCrypt\Interop.NCryptDeriveKeyMaterial.cs (1)
265ReadOnlySpan<NCryptBuffer>.Empty,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CngPkcs8.cs (3)
43ReadOnlySpan<char>.Empty, 49return key.ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<char>.Empty, pbeParameters); 67ReadOnlySpan<char>.Empty,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsa.cs (6)
1035PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty); 1079PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, ReadOnlySpan<char>.Empty, passwordBytes); 1131PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, ReadOnlySpan<char>.Empty, passwordBytes); 1176PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty); 1249PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty); 1309PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, ReadOnlySpan<char>.Empty, passwordBytes);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\DSACng.ImportExport.cs (3)
96ReadOnlySpan<byte>.Empty); 119ReadOnlySpan<char>.Empty, 141ReadOnlySpan<byte>.Empty);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECDiffieHellmanCng.ImportExport.cs (3)
149ReadOnlySpan<byte>.Empty); 172ReadOnlySpan<char>.Empty, 194ReadOnlySpan<byte>.Empty);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECDsaCng.ImportExport.cs (3)
186ReadOnlySpan<byte>.Empty); 209ReadOnlySpan<char>.Empty, 231ReadOnlySpan<byte>.Empty);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs (8)
29ReadOnlySpan<byte>.Empty, 51ReadOnlySpan<byte>.Empty, 69ReadOnlySpan<char>.Empty, 91ReadOnlySpan<char>.Empty, 196ReadOnlySpan<byte>.Empty, 207ReadOnlySpan<char>.Empty, 291ReadOnlySpan<byte>.Empty, 302ReadOnlySpan<char>.Empty,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLDsa.cs (6)
868PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty); 915PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, ReadOnlySpan<char>.Empty, passwordBytes); 984PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty); 1044PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, ReadOnlySpan<char>.Empty, passwordBytes); 1107PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty); 1151PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, ReadOnlySpan<char>.Empty, passwordBytes);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLKem.cs (6)
819PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty); 918PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, ReadOnlySpan<char>.Empty, passwordBytes); 958PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, ReadOnlySpan<char>.Empty, passwordBytes); 998PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty); 1072PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, ReadOnlySpan<char>.Empty, passwordBytes); 1113PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (4)
55ReadOnlySpan<char>.Empty, 58byte[] encrypted = safeContents.Encrypt(ReadOnlySpan<char>.Empty, passwordBytes, pbeParameters); 100ReadOnlySpan<byte>.Empty); 102byte[] encrypted = safeContents.Encrypt(password, ReadOnlySpan<byte>.Empty, pbeParameters);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (2)
201Decrypt(ReadOnlySpan<char>.Empty, passwordBytes); 212Decrypt(password, ReadOnlySpan<byte>.Empty);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs8PrivateKeyInfo.cs (4)
108ReadOnlySpan<byte>.Empty); 123ReadOnlySpan<char>.Empty, 148ReadOnlySpan<byte>.Empty); 165ReadOnlySpan<char>.Empty,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\RSACng.ImportExport.cs (3)
114ReadOnlySpan<byte>.Empty); 137ReadOnlySpan<char>.Empty, 159ReadOnlySpan<byte>.Empty);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\RSAKeyFormatHelper.cs (1)
156return WritePkcs8PrivateKey(ReadOnlySpan<byte>.Empty, pkcs1PrivateKey);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\SlhDsa.cs (6)
738PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty); 785PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, ReadOnlySpan<char>.Empty, passwordBytes); 854PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty); 914PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, ReadOnlySpan<char>.Empty, passwordBytes); 977PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty); 1028PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, ReadOnlySpan<char>.Empty, passwordBytes);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X25519DiffieHellman.cs (6)
492PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, ReadOnlySpan<char>.Empty, passwordBytes); 541PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty); 619PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, ReadOnlySpan<char>.Empty, passwordBytes); 655PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty); 721PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, ReadOnlySpan<char>.Empty, passwordBytes); 758PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty);
System\Security\Cryptography\DSA.cs (2)
931ReadOnlySpan<char>.Empty, 955ReadOnlySpan<byte>.Empty);
System\Security\Cryptography\ECAlgorithm.cs (2)
138ReadOnlySpan<char>.Empty, 211ReadOnlySpan<byte>.Empty);
System\Security\Cryptography\LiteHash.Windows.cs (2)
196secret: ReadOnlySpan<byte>.Empty, 330secret: ReadOnlySpan<byte>.Empty,
System\Security\Cryptography\RSA.cs (2)
812ReadOnlySpan<byte>.Empty); 834ReadOnlySpan<char>.Empty,
System\Security\Cryptography\X509Certificates\CertificatePal.Windows.Import.cs (1)
20return FromBlobOrFile(ReadOnlySpan<byte>.Empty, fileName, password, keyStorageFlags);
System.Security.Cryptography.Cose (4)
System\Security\Cryptography\Cose\CoseMessage.cs (2)
439int bytesWritten = CreateToBeSigned(buffer, context, bodyProtected, signProtected, associatedData, ReadOnlySpan<byte>.Empty); 485int bytesWritten = CreateToBeSigned(buffer, context, bodyProtected.Span, signProtected.Span, associatedData.Span, ReadOnlySpan<byte>.Empty);
System\Security\Cryptography\Cose\CoseSign1Message.cs (2)
321AppendToBeSigned(buffer, toBeSignedBuilder, SigStructureContext.Signature1, buffer.Slice(0, protectedMapBytesWritten), ReadOnlySpan<byte>.Empty, associatedData, contentBytes, contentStream); 788AppendToBeSigned(buffer, toBeSignedBuilder, SigStructureContext.Signature1, _protectedHeaderAsBstr, ReadOnlySpan<byte>.Empty, associatedData, contentBytes, contentStream);
System.Security.Cryptography.Pkcs (19)
Internal\Cryptography\Pal\AnyOS\ManagedPal.KeyAgree.cs (1)
79ReadOnlySpan<byte> rawData = ReadOnlySpan<byte>.Empty;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs (8)
29ReadOnlySpan<byte>.Empty, 51ReadOnlySpan<byte>.Empty, 69ReadOnlySpan<char>.Empty, 91ReadOnlySpan<char>.Empty, 196ReadOnlySpan<byte>.Empty, 207ReadOnlySpan<char>.Empty, 291ReadOnlySpan<byte>.Empty, 302ReadOnlySpan<char>.Empty,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (4)
55ReadOnlySpan<char>.Empty, 58byte[] encrypted = safeContents.Encrypt(ReadOnlySpan<char>.Empty, passwordBytes, pbeParameters); 100ReadOnlySpan<byte>.Empty); 102byte[] encrypted = safeContents.Encrypt(password, ReadOnlySpan<byte>.Empty, pbeParameters);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (2)
201Decrypt(ReadOnlySpan<char>.Empty, passwordBytes); 212Decrypt(password, ReadOnlySpan<byte>.Empty);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs8PrivateKeyInfo.cs (4)
108ReadOnlySpan<byte>.Empty); 123ReadOnlySpan<char>.Empty, 148ReadOnlySpan<byte>.Empty); 165ReadOnlySpan<char>.Empty,
System.Text.Json (3)
System\Text\Json\Reader\Utf8JsonReader.cs (1)
241ValueSpan = ReadOnlySpan<byte>.Empty;
System\Text\Json\Reader\Utf8JsonReader.MultiSegment.cs (2)
50ValueSpan = ReadOnlySpan<byte>.Empty; 2578localBuffer = ReadOnlySpan<byte>.Empty;
System.Web.HttpUtility (4)
System\Web\Util\HttpEncoder.cs (1)
592indexOfQuery >= 0 ? value.AsSpan(indexOfQuery) : ReadOnlySpan<char>.Empty);
System\Web\Util\UriUtil.cs (3)
27queryAndFragment = ReadOnlySpan<char>.Empty; 54schemeAndAuthority = ReadOnlySpan<char>.Empty; 56queryAndFragment = ReadOnlySpan<char>.Empty;
System.Xaml (6)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\ReflectionUtils.cs (5)
55return ReadOnlySpan<char>.Empty; 77dirtyName = !AssemblyNameInfo.TryParse(dirtyName, out AssemblyNameInfo? result) ? ReadOnlySpan<char>.Empty : result.Name; 100assemblyVersion = ReadOnlySpan<char>.Empty; 101assemblyToken = ReadOnlySpan<char>.Empty; 124assemblyToken = ReadOnlySpan<char>.Empty;
System\Xaml\Parser\GenericTypeNameScanner.cs (1)
157subscript = ReadOnlySpan<char>.Empty;
UIAutomationClientSideProviders (2)
MS\Internal\AutomationProxies\ProxyHwnd.cs (1)
456return ReadOnlySpan<WinEventTracker.EvtIdProperty>.Empty;
MS\Internal\AutomationProxies\WindowsComboBox.cs (1)
811return ReadOnlySpan<WinEventTracker.EvtIdProperty>.Empty;