52 references to Empty
ILCompiler.Compiler (2)
Compiler\ObjectWriter\ElfObjectWriter.Aot.cs (2)
121
armUnwindInfo = Span<byte>.
Empty
;
153
armUnwindInfo = armUnwindInfo.Length > 3 ? armUnwindInfo.Slice(4) : Span<byte>.
Empty
;
Microsoft.AspNetCore.DataProtection (2)
Managed\AesGcmAuthenticatedEncryptor.cs (2)
131
validationSubkey: Span<byte>.
Empty
/* filling in derivedKey only */);
271
validationSubkey: Span<byte>.
Empty
/* filling in derivedKey only */);
Microsoft.Build.Framework (1)
Utilities\ProcessExtensions.cs (1)
537
if (Sysctl(mib, Span<byte>.
Empty
, ref size) != 0 || size == 0)
Microsoft.ML.Tokenizers (9)
Model\BPETokenizer.cs (3)
1317
scoped Span<int> mapping = Span<int>.
Empty
;
1430
scoped Span<int> mapping = Span<int>.
Empty
;
1510
scoped Span<int> mapping = Span<int>.
Empty
;
Model\CodeGenTokenizer.cs (3)
688
=> CountTokens(text, Span<char>.
Empty
, addPrefixSpace, addBeginningOfSentence, addEndOfSentence, considerPreTokenization, considerNormalization, out _, out _);
750
tokenCount = CountTokens(text, Span<char>.
Empty
, addPrefixSpace, addBeginningOfSentence, addEndOfSentence, considerPreTokenization, considerNormalization, out normalizedText, out int charsConsumed, maxTokenCount);
900
=> LastIndexOf(text, Span<char>.
Empty
, maxTokenCount, addPrefixSpace, addBeginningOfSentence, addEndOfSentence, considerPreTokenization, considerNormalization, out normalizedText, out tokenCount);
Model\SentencePieceTokenizer.cs (3)
146
=> _model.EncodeToTokens(text, Span<char>.
Empty
, out normalizedText, addBeginningOfSentence, addEndOfSentence, considerNormalization);
189
=> _model.EncodeToIds(text, Span<char>.
Empty
, addBeginningOfSentence, addEndOfSentence, considerNormalization, out _, out _);
216
=> _model.EncodeToIds(text, Span<char>.
Empty
, addBeginningOfSentence, addEndOfSentence, considerNormalization, out normalizedText, out charsConsumed, maxTokenCount);
Microsoft.ML.Tokenizers.Tests (5)
LlamaTests.cs (3)
339
Assert.Equal([], llamaTokenizer.EncodeToTokens(Span<char>.
Empty
, out _));
342
Assert.Equal([], llamaTokenizer.EncodeToIds(Span<char>.
Empty
));
345
Assert.Equal(0, llamaTokenizer.CountTokens(Span<char>.
Empty
));
TokenizerTests.cs (2)
218
Assert.Equal(0, tokenizer.GetIndexByTokenCount(Span<char>.
Empty
, maxTokenCount: 10, out _, out _));
219
Assert.Equal(0, tokenizer.GetIndexByTokenCountFromEnd(Span<char>.
Empty
, maxTokenCount: 10, out _, out _));
PresentationFramework (1)
MS\Internal\Ink\LassoSelectionBehavior.cs (1)
425
return Span<Point>.
Empty
;
System.Formats.Asn1 (10)
System\Formats\Asn1\AsnCharacterStringEncodings.cs (2)
64
return GetBytes(chars, Span<byte>.
Empty
, write: false);
99
return GetChars(bytes, Span<char>.
Empty
, write: false);
System\Formats\Asn1\AsnCharacterStringEncodings.net.cs (6)
49
Span<byte> destination = write ? bytes.Slice(0, available) : Span<byte>.
Empty
;
86
Span<ushort>.
Empty
;
290
Span<byte> destination = write ? bytes.Slice(0, available) : Span<byte>.
Empty
;
331
Span<ushort>.
Empty
;
494
Span<ushort>.
Empty
;
530
Span<ushort>.
Empty
;
System\Formats\Asn1\AsnDecoder.BitString.cs (1)
419
Span<byte> destination = Span<byte>.
Empty
;
System\Formats\Asn1\AsnDecoder.OctetString.cs (1)
293
Span<byte>.
Empty
,
System.IO.Compression (1)
System\IO\Compression\Zstandard\ZstandardStream.Compress.cs (1)
325
WriteCore(Span<byte>.
Empty
, flush: true);
System.IO.Pipelines (1)
System\IO\Pipelines\PipeWriter.cs (1)
78
/// This method never returns <see cref="System.Span{T}.
Empty
" />, but it throws an <see cref="System.OutOfMemoryException" /> if the requested buffer size is not available.
System.Net.Quic (5)
System\Net\Quic\Internal\MsQuicTlsSecret.cs (5)
60
: Span<byte>.
Empty
;
64
: Span<byte>.
Empty
;
68
: Span<byte>.
Empty
;
72
: Span<byte>.
Empty
;
76
: Span<byte>.
Empty
;
System.Net.Security (2)
System\Net\Security\SslStream.Protocol.cs (1)
1593
internal Span<byte> AvailableSpan => Payload == null ? Span<byte>.
Empty
: new Span<byte>(Payload, Size, Available);
System\Net\Security\TlsSession.cs (1)
1348
Span<byte>.
Empty
,
System.Net.Sockets (2)
System\Net\Sockets\SocketPal.Unix.cs (2)
669
public static bool TryStartConnect(SafeSocketHandle socket, Memory<byte> socketAddress, out SocketError errorCode) => TryStartConnect(socket, socketAddress, out errorCode, Span<byte>.
Empty
, false, out int _ );
1271
if (!TryCompleteReceiveFrom(handle, buffers, socketFlags, Span<byte>.
Empty
, out int _, out bytesTransferred, out _, out errorCode))
System.Private.CoreLib (5)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\IdnMapping.Icu.cs (1)
35
actualLength = Interop.Globalization.ToAscii(flags, unicode, count, Span<char>.
Empty
, 0);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\IdnMapping.Nls.cs (4)
21
int length = Interop.Normaliz.IdnToAscii(flags, unicode, count, Span<char>.
Empty
, 0);
63
int length = Interop.Normaliz.IdnToAscii(flags, unicode, unicode.Length, Span<char>.
Empty
, 0);
95
int length = Interop.Normaliz.IdnToUnicode(flags, ascii, count, Span<char>.
Empty
, 0);
137
int length = Interop.Normaliz.IdnToUnicode(flags, ascii, ascii.Length, Span<char>.
Empty
, 0);
System.Security.Cryptography (5)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (1)
433
Span<byte> encryptedSpan = Span<byte>.
Empty
;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\RsaPaddingProcessor.cs (1)
297
Span<byte> dbMaskSpan = Span<byte>.
Empty
;
System\Security\Cryptography\CngKey.Export.cs (1)
53
Span<byte>.
Empty
,
System\Security\Cryptography\HKDFManagedImplementation.cs (1)
24
Span<byte> t = Span<byte>.
Empty
;
System\Security\Cryptography\LiteHash.Windows.cs (1)
263
public void Reset() => Finalize(Span<byte>.
Empty
);
System.Security.Cryptography.Pkcs (1)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (1)
433
Span<byte> encryptedSpan = Span<byte>.
Empty
;