63 references to ContainsAnyExcept
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\Activity.cs (1)
2154
return !idData.ContainsAnyExcept(s_hexLowerChars) && idData.
ContainsAnyExcept
('0');
System.Formats.Tar (2)
System\Formats\Tar\TarHeader.Read.cs (1)
629
bool allZeros = !buffer.
ContainsAnyExcept
((byte)0);
System\Formats\Tar\TarHelpers.cs (1)
114
!buffer.
ContainsAnyExcept
((byte)0);
System.Numerics.Tensors (3)
System\Numerics\Tensors\netcore\Tensor.cs (3)
1412
if (!tensor.Strides.
ContainsAnyExcept
(0))
1485
if (!tensor.Strides.
ContainsAnyExcept
(0))
1562
if (!tensor.Strides.
ContainsAnyExcept
(0))
System.Private.CoreLib (37)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Byte.cs (2)
309
if ((source.Length > sizeof(byte)) && (source[..^sizeof(byte)].
ContainsAnyExcept
((byte)0x00)))
342
if ((source.Length > sizeof(byte)) && (source[sizeof(byte)..].
ContainsAnyExcept
((byte)0x00)))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (2)
1263
if ((source.Length > sizeof(char)) && (source[..^sizeof(char)].
ContainsAnyExcept
((byte)0x00)))
1304
if ((source.Length > sizeof(char)) && (source[sizeof(char)..].
ContainsAnyExcept
((byte)0x00)))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\BitArray.cs (2)
938
if (_array.AsSpan(0, byteCount).
ContainsAnyExcept
((byte)0xFF))
965
if (_array.AsSpan(0, byteCount).
ContainsAnyExcept
((byte)0))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentDictionary.cs (1)
1933
!_tables._countPerLock.AsSpan().
ContainsAnyExcept
(0);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (1)
1239
if (str.Value.Slice(str.Index + 1).
ContainsAnyExcept
('\0'))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (2)
781
if (source[..^Size].
ContainsAnyExcept
((byte)sign))
854
if (source[Size..].
ContainsAnyExcept
((byte)sign))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (2)
329
if (source[..^sizeof(short)].
ContainsAnyExcept
((byte)sign))
395
if (source[sizeof(short)..].
ContainsAnyExcept
((byte)sign))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (2)
350
if (source[..^sizeof(int)].
ContainsAnyExcept
((byte)sign))
423
if (source[sizeof(int)..].
ContainsAnyExcept
((byte)sign))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (2)
347
if (source[..^sizeof(long)].
ContainsAnyExcept
((byte)sign))
420
if (source[sizeof(long)..].
ContainsAnyExcept
((byte)sign))
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (2)
380
if (source[..^sizeof(nint_t)].
ContainsAnyExcept
((byte)sign))
453
if (source[sizeof(nint_t)..].
ContainsAnyExcept
((byte)sign))
src\runtime\src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (2)
406
/// <inheritdoc cref="
ContainsAnyExcept
{T}(ReadOnlySpan{T}, T)"/>
410
ContainsAnyExcept
((ReadOnlySpan<T>)span, value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.BigInteger.cs (1)
991
if (((ReadOnlySpan<nuint>)_blocks)[..fullBlocks].
ContainsAnyExcept
((nuint)0))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.cs (2)
745
return coefficient.DigitsCount > 1 && (coefficient.Digits.Slice(1).
ContainsAnyExcept
((byte)'0') || coefficient.HasNonZeroTail)
799
|| number.Digits.Slice(index, number.DigitsCount - index).
ContainsAnyExcept
((byte)'0'))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BigIntegerCalculator.Shared.cs (2)
27
Debug.Assert(left.Length <= right.Length || left.Slice(right.Length).
ContainsAnyExcept
(0u));
28
Debug.Assert(left.Length >= right.Length || right.Slice(left.Length).
ContainsAnyExcept
(0u));
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (2)
332
if (source[..^sizeof(sbyte)].
ContainsAnyExcept
((byte)sign))
385
if (source[sizeof(sbyte)..].
ContainsAnyExcept
((byte)sign))
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (2)
1119
if ((source.Length > Size) && (source[..^Size].
ContainsAnyExcept
((byte)0x00)))
1167
if ((source.Length > Size) && (source[Size..].
ContainsAnyExcept
((byte)0x00)))
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt16.cs (2)
306
if ((source.Length > sizeof(ushort)) && (source[..^sizeof(ushort)].
ContainsAnyExcept
((byte)0x00)))
347
if ((source.Length > sizeof(ushort)) && (source[sizeof(ushort)..].
ContainsAnyExcept
((byte)0x00)))
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt32.cs (2)
353
if ((source.Length > sizeof(uint)) && (source[..^sizeof(uint)].
ContainsAnyExcept
((byte)0x00)))
401
if ((source.Length > sizeof(uint)) && (source[sizeof(uint)..].
ContainsAnyExcept
((byte)0x00)))
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (2)
360
if ((source.Length > sizeof(ulong)) && (source[..^sizeof(ulong)].
ContainsAnyExcept
((byte)0x00)))
408
if ((source.Length > sizeof(ulong)) && (source[sizeof(ulong)..].
ContainsAnyExcept
((byte)0x00)))
src\runtime\src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (2)
365
if ((source.Length > sizeof(nuint_t)) && (source[..^sizeof(nuint_t)].
ContainsAnyExcept
((byte)0x00)))
413
if ((source.Length > sizeof(nuint_t)) && (source[sizeof(nuint_t)..].
ContainsAnyExcept
((byte)0x00)))
System.Runtime.Numerics (18)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BigIntegerCalculator.Shared.cs (2)
27
Debug.Assert(left.Length <= right.Length || left.Slice(right.Length).
ContainsAnyExcept
(0u));
28
Debug.Assert(left.Length >= right.Length || right.Slice(left.Length).
ContainsAnyExcept
(0u));
System\Number.BigInteger.cs (1)
317
if (bits.AsSpan().
ContainsAnyExcept
(0u))
System\Numerics\BigInteger.cs (6)
786
return BitOperations.IsPow2(_bits[iu]) && !_bits.AsSpan(0, iu).
ContainsAnyExcept
(0u);
2145
sticky = bits.AsSpan(0, lowerLimbCount).
ContainsAnyExcept
((nuint)0);
2903
if (neg && (carry != 0 || bits.Slice(0, digitShift).
ContainsAnyExcept
(0u)))
3298
return bits.AsSpan(0, bitsArrayLength - 1).
ContainsAnyExcept
(0u) ? bitLength : bitLength - 1;
3813
if (bits.AsSpan(0, bits.Length - 1).
ContainsAnyExcept
(0u))
4000
if (bits.AsSpan(0, bits.Length - 1).
ContainsAnyExcept
(0u))
System\Numerics\BigIntegerCalculator.DivRem.cs (3)
262
Debug.Assert(!q.Slice(quotientUpper.Length).
ContainsAnyExcept
(0u));
287
Debug.Assert(!r.Slice(0, sigmaDigit).
ContainsAnyExcept
(0u));
380
Debug.Assert(!r1.Slice(remainder.Length).
ContainsAnyExcept
(0u));
System\Numerics\BigIntegerCalculator.SquMul.cs (6)
30
Debug.Assert(!bits.
ContainsAnyExcept
(0u));
539
Debug.Assert(!buffer.
ContainsAnyExcept
(0u));
581
Debug.Assert(!pm2.
ContainsAnyExcept
(0u));
618
Debug.Assert(!buffer.
ContainsAnyExcept
(0u));
672
Debug.Assert(!buffer.
ContainsAnyExcept
(0u));
944
Debug.Assert(!left.
ContainsAnyExcept
(0u));
System.Security.Cryptography (2)
System\Security\Cryptography\Aes.cs (1)
726
if (header != 0xA65959A6 || pad > 7 || destination.Slice(slen).
ContainsAnyExcept
((byte)0))
System\Security\Cryptography\SymmetricPadding.cs (1)
167
if (block.Slice(block.Length - padBytes, padBytes - 1).
ContainsAnyExcept
((byte)0))