106 references to IsEmpty
Aspire.Hosting.Docker (1)
EnvVarEscaper.cs (1)
227if (strippedSpan.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)
Microsoft.ML.Core (3)
Utilities\Contracts.cs (1)
962if (args.IsEmpty)
Utilities\Stream.cs (2)
686Contracts.Assert(!destination.IsEmpty); 701while (!destination.IsEmpty)
Microsoft.ML.CpuMath (1)
src\Microsoft.ML.Core\Utilities\Contracts.cs (1)
962if (args.IsEmpty)
Microsoft.ML.Data (1)
Deprecated\Vector\VectorUtils.cs (1)
152if (!aEditor.Indices.IsEmpty)
Microsoft.ML.ImageAnalytics (5)
ImagePixelExtractor.cs (5)
359Contracts.Assert(!vf.IsEmpty || !vb.IsEmpty); 361Contracts.Assert(!needScale || !vf.IsEmpty); 385if (!vb.IsEmpty) 421if (!vb.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)
218Debug.Assert(s.IsEmpty);
System.Formats.Nrbf (1)
System\Formats\Nrbf\ArraySinglePrimitiveRecord.cs (1)
132while (!valuesToRead.IsEmpty)
System.IO.Compression (3)
System\IO\Compression\DeflateManaged\InflaterManaged.cs (1)
131if (bytes.IsEmpty)
System\IO\Compression\DeflateZLib\DeflateStream.cs (2)
322if (s_useStrictValidation && !buffer.IsEmpty && !_inflater.Finished() && _inflater.NonEmptyInput()) 338if (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 (27)
src\libraries\Common\src\System\Number.NumberBuffer.cs (1)
45Debug.Assert(!digits.IsEmpty);
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64DecoderHelper.cs (1)
320if (buffer.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64EncoderHelper.cs (1)
589if (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); 509Debug.Assert(!keys.IsEmpty); 679Debug.Assert(!keys.IsEmpty); 764Debug.Assert(!keys.IsEmpty); 909Debug.Assert(!keys.IsEmpty); 999Debug.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\Globalization\Normalization.Icu.cs (1)
129if (destination.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\Globalization\Normalization.Nls.cs (1)
122if (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)
5094if (!destination.IsEmpty) 5213if (destination.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\Random.cs (2)
223while (!destination.IsEmpty) 249while (!destination.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\Random.Xoshiro256StarStarImpl.cs (1)
156if (!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)
1037if (!destination.IsEmpty) 1083if (!destination.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\Text\Unicode\Utf8.cs (1)
186if (destination.IsEmpty)
src\libraries\System.Private.CoreLib\src\System\Version.cs (1)
231if (destination.IsEmpty)
System.Private.Windows.Core (1)
System\SpanHelpers.cs (1)
15Debug.Assert(!destination.IsEmpty);
System.Runtime.Numerics (6)
src\libraries\Common\src\System\Number.NumberBuffer.cs (1)
45Debug.Assert(!digits.IsEmpty);
System\Number.BigInteger.cs (1)
647Debug.Assert(!bytes.IsEmpty);
System\Numerics\BigInteger.cs (1)
1329Debug.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 (13)
System\Security\Cryptography\Pbkdf2Implementation.OpenSsl.cs (1)
17Debug.Assert(!destination.IsEmpty);
System\Security\Cryptography\RandomNumberGenerator.cs (6)
256if (destination.IsEmpty) 308Debug.Assert(!destination.IsEmpty); 333while (!destination.IsEmpty) 337if (remainingRandom.IsEmpty) 370while (!destination.IsEmpty) 396while (!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\SP800108HmacCounterKdfImplementationOpenSsl.cs (2)
31if (destination.IsEmpty) 81if (destination.IsEmpty)
System\Security\Cryptography\X509Certificates\X509Certificate2Collection.cs (1)
635if (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)
109if (!destination.IsEmpty)
System\Text\Encodings\Web\TextEncoder.cs (2)
65while (!utf16ScratchBuffer.IsEmpty) 599if (destination.IsEmpty)
System.Text.Json (9)
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 (6)
26Debug.Assert(!utf8Unescaped.IsEmpty); 56Debug.Assert(!utf8Unescaped.IsEmpty); 108Debug.Assert(!utf8Unescaped.IsEmpty); 146Debug.Assert(!utf8Unescaped.IsEmpty); 183Debug.Assert(!utf8Unescaped1.IsEmpty); 187Debug.Assert(!utf8Unescaped2.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)
System.Web.HttpUtility (1)
System\Web\Util\HttpEncoder.cs (1)
632Debug.Assert(!_byteBuffer.IsEmpty);
System.Windows.Forms (1)
System\Windows\Forms\ActiveX\DataStreamFromComStream.cs (1)
74if (!buffer.IsEmpty)