36 references to Empty
InMemory.FunctionalTests (1)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (1)
722
await SendAsync(Span<byte>.
Empty
);
Microsoft.AspNetCore.Components.Forms.Tests (1)
ReverseStringBuilderTest.cs (1)
27
using var builder = new ReverseStringBuilder(Span<char>.
Empty
);
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (1)
722
await SendAsync(Span<byte>.
Empty
);
Microsoft.DotNet.XUnitAssert.Tests (6)
SpanAssertsTests.cs (6)
172
var ex = Record.Exception(() => Assert.Contains(new int[] { 3, 4 }.Spanify(), Span<int>.
Empty
));
186
Assert.Contains(Span<int>.
Empty
, new int[] { 3, 4 }.Spanify());
187
Assert.Contains(Span<int>.
Empty
, Span<int>.
Empty
);
397
Assert.DoesNotContain(new int[] { 3, 4 }.Spanify(), Span<int>.
Empty
);
405
var ex = Record.Exception(() => Assert.DoesNotContain(Span<int>.
Empty
, data.ToArray().Spanify()));
System.Formats.Asn1 (4)
System\Formats\Asn1\AsnCharacterStringEncodings.cs (2)
108
return GetBytes(chars, Span<byte>.
Empty
, write: false);
143
return GetChars(bytes, Span<char>.
Empty
, write: false);
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.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 (1)
System\Net\Security\SslStream.Protocol.cs (1)
1393
internal Span<byte> AvailableSpan => Payload == null ? Span<byte>.
Empty
: new Span<byte>(Payload, Size, Available);
System.Net.Sockets (1)
System\Net\Sockets\SocketPal.Unix.cs (1)
1238
if (!TryCompleteReceiveFrom(handle, buffers, socketFlags, Span<byte>.
Empty
, out int _, out bytesTransferred, out _, out errorCode))
System.Security.Cryptography (15)
src\libraries\Common\src\System\Security\Cryptography\RSAOpenSsl.cs (1)
737
Span<byte>.
Empty
,
src\libraries\Common\src\System\Security\Cryptography\RsaPaddingProcessor.cs (1)
297
Span<byte> dbMaskSpan = Span<byte>.
Empty
;
System\Security\Cryptography\AesCcm.OpenSsl.cs (4)
46
Interop.Crypto.EvpCipherSetKeyAndIV(ctx, Span<byte>.
Empty
, Span<byte>.
Empty
, Interop.Crypto.EvpCipherDirection.Encrypt);
56
if (!Interop.Crypto.EvpCipherUpdate(ctx, Span<byte>.
Empty
, out _, associatedData))
122
if (!Interop.Crypto.EvpCipherUpdate(ctx, Span<byte>.
Empty
, out _, associatedData))
System\Security\Cryptography\AesGcm.OpenSsl.cs (4)
26
Span<byte>.
Empty
,
40
Span<byte>.
Empty
,
46
if (!Interop.Crypto.EvpCipherUpdate(_ctxHandle, Span<byte>.
Empty
, out _, associatedData))
91
if (!Interop.Crypto.EvpCipherUpdate(_ctxHandle, Span<byte>.
Empty
, out _, associatedData))
System\Security\Cryptography\ChaCha20Poly1305.OpenSsl.cs (4)
26
Span<byte>.
Empty
,
39
Span<byte>.
Empty
,
45
if (!Interop.Crypto.EvpCipherUpdate(_ctxHandle, Span<byte>.
Empty
, out _, associatedData))
90
if (!Interop.Crypto.EvpCipherUpdate(_ctxHandle, Span<byte>.
Empty
, out _, associatedData))
System\Security\Cryptography\HKDF.cs (1)
136
Span<byte> t = Span<byte>.
Empty
;