83 references to IsEmpty
Microsoft.AspNetCore.OutputCaching (1)
FormatterBinaryWriter.cs (1)
111if (span.IsEmpty)
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Middleware\Internal\LoggingStream.cs (1)
89if (!destination.IsEmpty)
src\Shared\runtime\Http3\QPack\QPackEncoder.cs (2)
25if (!destination.IsEmpty) 369if (destination.IsEmpty)
Microsoft.AspNetCore.Shared.Tests (2)
src\Shared\runtime\Http3\QPack\QPackEncoder.cs (2)
25if (!destination.IsEmpty) 369if (destination.IsEmpty)
System.Console (3)
System\IO\StdInReader.cs (3)
109if (buffer.IsEmpty) 130Debug.Assert(!buffer.IsEmpty); 137if (!completed || buffer.IsEmpty)
System.Formats.Asn1 (1)
System\Formats\Asn1\AsnCharacterStringEncodings.cs (1)
60if (bytes.IsEmpty)
System.Formats.Cbor (4)
System\Formats\Cbor\Reader\CborReader.String.cs (2)
344Debug.Assert(target.IsEmpty); 407Debug.Assert(target.IsEmpty);
System\Formats\Cbor\Writer\CborWriter.Map.cs (1)
171Debug.Assert(s.IsEmpty);
System\Formats\Cbor\Writer\CborWriter.String.cs (1)
224Debug.Assert(s.IsEmpty);
System.IO.Compression (3)
System\IO\Compression\DeflateManaged\InflaterManaged.cs (1)
131if (bytes.IsEmpty)
System\IO\Compression\DeflateZLib\DeflateStream.cs (2)
287if (s_useStrictValidation && !buffer.IsEmpty && !_inflater.Finished() && _inflater.NonEmptyInput()) 303if (buffer.IsEmpty)
System.IO.Compression.Brotli (3)
System\IO\Compression\dec\BrotliStream.Decompress.cs (3)
69if (s_useStrictValidation && _nonEmptyInput && !buffer.IsEmpty) 205if (destination.IsEmpty) 225(lastResult == OperationStatus.DestinationTooSmall && destination.IsEmpty && _bufferCount == 0), $"{nameof(lastResult)} == {lastResult}, {nameof(destination.Length)} == {destination.Length}");
System.Memory (3)
System\Buffers\BuffersExtensions.cs (1)
145if (destination.IsEmpty)
System\Text\EncodingExtensions.cs (2)
209Debug.Assert(remainingBytes.IsEmpty, "Over-allocated the byte[] instance?"); 395Debug.Assert(span.IsEmpty, "Over-allocated the string instance?");
System.Net.Http (2)
src\libraries\Common\src\System\Net\Http\aspnetcore\Http3\QPack\QPackEncoder.cs (2)
25if (!destination.IsEmpty) 369if (destination.IsEmpty)
System.Net.Quic (5)
System\Net\Quic\Internal\MsQuicTlsSecret.cs (5)
88if (!clientHandshakeTrafficSecret.IsEmpty) 94if (!serverHandshakeTrafficSecret.IsEmpty) 100if (!clientTrafficSecret0.IsEmpty) 106if (!serverTrafficSecret0.IsEmpty) 112if (!clientEarlyTrafficSecret.IsEmpty)
System.Private.CoreLib (24)
src\libraries\Common\src\System\Number.NumberBuffer.cs (1)
46Debug.Assert(!digits.IsEmpty);
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Decoder.cs (1)
370if (buffer.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Encoder.cs (1)
194if (buffer.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
179if (!destination.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ArraySortHelper.cs (8)
136Debug.Assert(!keys.IsEmpty); 220Debug.Assert(!keys.IsEmpty); 413Debug.Assert(!keys.IsEmpty); 510Debug.Assert(!keys.IsEmpty); 680Debug.Assert(!keys.IsEmpty); 765Debug.Assert(!keys.IsEmpty); 910Debug.Assert(!keys.IsEmpty); 1000Debug.Assert(!keys.IsEmpty);
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Nls.cs (1)
431if (destination.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\IO\BinaryReader.cs (1)
324while (!buffer.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (2)
3692if (!destination.IsEmpty) 3811if (destination.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\Random.cs (1)
209while (!destination.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\Random.Xoshiro256StarStarImpl.cs (1)
158if (!buffer.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\Text\ASCIIEncoding.cs (1)
782if (!bytes.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\Text\Latin1Encoding.cs (1)
666if (!bytes.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\Text\Rune.cs (2)
1018if (!destination.IsEmpty) 1064if (!destination.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\Text\Unicode\Utf8.cs (1)
188if (destination.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\Version.cs (1)
231if (destination.IsEmpty)
System.Runtime.Numerics (6)
src\libraries\Common\src\System\Number.NumberBuffer.cs (1)
46Debug.Assert(!digits.IsEmpty);
System\Number.BigInteger.cs (1)
757Debug.Assert(!bytes.IsEmpty);
System\Numerics\BigInteger.cs (1)
1319Debug.Assert(mode == GetBytesMode.Span || destination.IsEmpty, $"If we're not in span mode, we shouldn't have been passed a destination.");
System\Numerics\BigIntegerCalculator.FastReducer.cs (1)
71Debug.Assert(!bits.IsEmpty);
System\Numerics\BigIntegerCalculator.SquMul.cs (1)
163Debug.Assert(bits.Trim(0u).IsEmpty);
System\Numerics\NumericsHelpers.cs (1)
119if (d.IsEmpty)
System.Security.Cryptography (10)
System\Security\Cryptography\Pbkdf2Implementation.OpenSsl.cs (1)
17Debug.Assert(!destination.IsEmpty);
System\Security\Cryptography\RandomNumberGenerator.cs (5)
261if (destination.IsEmpty) 313Debug.Assert(!destination.IsEmpty); 336while (!destination.IsEmpty) 340if (remainingRandom.IsEmpty) 366while (!destination.IsEmpty)
System\Security\Cryptography\Rfc2898DeriveBytes.OneShot.cs (2)
271if (destination.IsEmpty) 312if (destination.IsEmpty)
System\Security\Cryptography\SP800108HmacCounterKdfImplementationManaged.cs (1)
51for (uint i = 1; !destination.IsEmpty; i++)
System\Security\Cryptography\X509Certificates\X509Certificate2Collection.cs (1)
563if (buffer.IsEmpty)
System.Text.Encodings.Web (4)
System\Text\Encodings\Web\AllowedBmpCodePointsBitmap.cs (1)
81Debug.Assert(thisAllowedCharactersBitmap.IsEmpty, "Both vectors should've been fully consumed.");
System\Text\Encodings\Web\OptimizedInboxTextEncoder.cs (1)
93if (!destination.IsEmpty)
System\Text\Encodings\Web\TextEncoder.cs (2)
65while (!utf16ScratchBuffer.IsEmpty) 599if (destination.IsEmpty)
System.Text.Json (7)
System\Text\Json\Reader\JsonReaderHelper.cs (3)
91Debug.Assert(!sourceUnescaped.IsEmpty); 113Debug.Assert(!sourceUnescaped.IsEmpty); 135Debug.Assert(!utf8Unescaped.IsEmpty);
System\Text\Json\Reader\JsonReaderHelper.Unescaping.cs (4)
26Debug.Assert(!utf8Unescaped.IsEmpty); 56Debug.Assert(!utf8Unescaped.IsEmpty); 108Debug.Assert(!utf8Unescaped.IsEmpty); 146Debug.Assert(!utf8Unescaped.IsEmpty);
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (1)
1213if (!chars.IsEmpty)
System.Text.RegularExpressions.Generator (1)
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (1)
1213if (!chars.IsEmpty)