36 references to Empty
InMemory.FunctionalTests (1)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (1)
722await SendAsync(Span<byte>.Empty);
Microsoft.AspNetCore.Components.Forms.Tests (1)
ReverseStringBuilderTest.cs (1)
27using var builder = new ReverseStringBuilder(Span<char>.Empty);
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (1)
722await 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)
108return GetBytes(chars, Span<byte>.Empty, write: false); 143return GetChars(bytes, Span<char>.Empty, write: false);
System\Formats\Asn1\AsnDecoder.BitString.cs (1)
419Span<byte> destination = Span<byte>.Empty;
System\Formats\Asn1\AsnDecoder.OctetString.cs (1)
293Span<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)
1393internal 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)
1238if (!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)
737Span<byte>.Empty,
src\libraries\Common\src\System\Security\Cryptography\RsaPaddingProcessor.cs (1)
297Span<byte> dbMaskSpan = Span<byte>.Empty;
System\Security\Cryptography\AesCcm.OpenSsl.cs (4)
46Interop.Crypto.EvpCipherSetKeyAndIV(ctx, Span<byte>.Empty, Span<byte>.Empty, Interop.Crypto.EvpCipherDirection.Encrypt); 56if (!Interop.Crypto.EvpCipherUpdate(ctx, Span<byte>.Empty, out _, associatedData)) 122if (!Interop.Crypto.EvpCipherUpdate(ctx, Span<byte>.Empty, out _, associatedData))
System\Security\Cryptography\AesGcm.OpenSsl.cs (4)
26Span<byte>.Empty, 40Span<byte>.Empty, 46if (!Interop.Crypto.EvpCipherUpdate(_ctxHandle, Span<byte>.Empty, out _, associatedData)) 91if (!Interop.Crypto.EvpCipherUpdate(_ctxHandle, Span<byte>.Empty, out _, associatedData))
System\Security\Cryptography\ChaCha20Poly1305.OpenSsl.cs (4)
26Span<byte>.Empty, 39Span<byte>.Empty, 45if (!Interop.Crypto.EvpCipherUpdate(_ctxHandle, Span<byte>.Empty, out _, associatedData)) 90if (!Interop.Crypto.EvpCipherUpdate(_ctxHandle, Span<byte>.Empty, out _, associatedData))
System\Security\Cryptography\HKDF.cs (1)
136Span<byte> t = Span<byte>.Empty;