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