46 references to ContainsAnyExcept
System.Collections.Concurrent (1)
System\Collections\Concurrent\ConcurrentDictionary.cs (1)
1933!_tables._countPerLock.AsSpan().ContainsAnyExcept(0);
System.Formats.Tar (2)
System\Formats\Tar\TarHeader.Read.cs (1)
549bool allZeros = !buffer.ContainsAnyExcept((byte)0);
System\Formats\Tar\TarHelpers.cs (1)
134!buffer.ContainsAnyExcept((byte)0);
System.Numerics.Tensors (3)
System\Numerics\Tensors\netcore\Tensor.cs (3)
1445if (!tensor.Strides.ContainsAnyExcept(0)) 1518if (!tensor.Strides.ContainsAnyExcept(0)) 1595if (!tensor.Strides.ContainsAnyExcept(0))
System.Private.CoreLib (32)
src\libraries\Common\src\System\Number.Parsing.Common.cs (1)
306return !value.Slice(index).ContainsAnyExcept(TChar.CastFrom('\0'));
src\libraries\System.Private.CoreLib\src\System\Byte.cs (2)
312if ((source.Length > sizeof(byte)) && (source[..^sizeof(byte)].ContainsAnyExcept((byte)0x00))) 345if ((source.Length > sizeof(byte)) && (source[sizeof(byte)..].ContainsAnyExcept((byte)0x00)))
src\libraries\System.Private.CoreLib\src\System\Char.cs (2)
1226if ((source.Length > sizeof(char)) && (source[..^sizeof(char)].ContainsAnyExcept((byte)0x00))) 1276if ((source.Length > sizeof(char)) && (source[sizeof(char)..].ContainsAnyExcept((byte)0x00)))
src\libraries\System.Private.CoreLib\src\System\Collections\BitArray.cs (2)
878if (_array.AsSpan(0, byteCount).ContainsAnyExcept((byte)0xFF)) 905if (_array.AsSpan(0, byteCount).ContainsAnyExcept((byte)0))
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (1)
1233if (str.Value.Slice(str.Index + 1).ContainsAnyExcept('\0'))
src\libraries\System.Private.CoreLib\src\System\Int128.cs (2)
777if (source[..^Size].ContainsAnyExcept((byte)sign)) 859if (source[Size..].ContainsAnyExcept((byte)sign))
src\libraries\System.Private.CoreLib\src\System\Int16.cs (2)
325if (source[..^sizeof(short)].ContainsAnyExcept((byte)sign)) 400if (source[sizeof(short)..].ContainsAnyExcept((byte)sign))
src\libraries\System.Private.CoreLib\src\System\Int32.cs (2)
345if (source[..^sizeof(int)].ContainsAnyExcept((byte)sign)) 427if (source[sizeof(int)..].ContainsAnyExcept((byte)sign))
src\libraries\System.Private.CoreLib\src\System\Int64.cs (2)
342if (source[..^sizeof(long)].ContainsAnyExcept((byte)sign)) 424if (source[sizeof(long)..].ContainsAnyExcept((byte)sign))
src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (2)
347if (source[..^sizeof(nint_t)].ContainsAnyExcept((byte)sign)) 429if (source[sizeof(nint_t)..].ContainsAnyExcept((byte)sign))
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (2)
406/// <inheritdoc cref="ContainsAnyExcept{T}(ReadOnlySpan{T}, T)"/> 410ContainsAnyExcept((ReadOnlySpan<T>)span, value);
src\libraries\System.Private.CoreLib\src\System\SByte.cs (2)
328if (source[..^sizeof(sbyte)].ContainsAnyExcept((byte)sign)) 381if (source[sizeof(sbyte)..].ContainsAnyExcept((byte)sign))
src\libraries\System.Private.CoreLib\src\System\UInt128.cs (2)
838if ((source.Length > Size) && (source[..^Size].ContainsAnyExcept((byte)0x00))) 895if ((source.Length > Size) && (source[Size..].ContainsAnyExcept((byte)0x00)))
src\libraries\System.Private.CoreLib\src\System\UInt16.cs (2)
309if ((source.Length > sizeof(ushort)) && (source[..^sizeof(ushort)].ContainsAnyExcept((byte)0x00))) 359if ((source.Length > sizeof(ushort)) && (source[sizeof(ushort)..].ContainsAnyExcept((byte)0x00)))
src\libraries\System.Private.CoreLib\src\System\UInt32.cs (2)
330if ((source.Length > sizeof(uint)) && (source[..^sizeof(uint)].ContainsAnyExcept((byte)0x00))) 387if ((source.Length > sizeof(uint)) && (source[sizeof(uint)..].ContainsAnyExcept((byte)0x00)))
src\libraries\System.Private.CoreLib\src\System\UInt64.cs (2)
329if ((source.Length > sizeof(ulong)) && (source[..^sizeof(ulong)].ContainsAnyExcept((byte)0x00))) 386if ((source.Length > sizeof(ulong)) && (source[sizeof(ulong)..].ContainsAnyExcept((byte)0x00)))
src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (2)
333if ((source.Length > sizeof(nuint_t)) && (source[..^sizeof(nuint_t)].ContainsAnyExcept((byte)0x00))) 390if ((source.Length > sizeof(nuint_t)) && (source[sizeof(nuint_t)..].ContainsAnyExcept((byte)0x00)))
System.Runtime.Numerics (8)
src\libraries\Common\src\System\Number.Parsing.Common.cs (1)
306return !value.Slice(index).ContainsAnyExcept(TChar.CastFrom('\0'));
System\Number.BigInteger.cs (1)
258if (bits.AsSpan().ContainsAnyExcept(0u))
System\Numerics\BigInteger.cs (1)
650return BitOperations.IsPow2(_bits[iu]) && !_bits.AsSpan(0, iu).ContainsAnyExcept(0u);
System\Numerics\BigIntegerCalculator.DivRem.cs (3)
459Debug.Assert(!q.Slice(quotientUpper.Length).ContainsAnyExcept(0u)); 486Debug.Assert(!r.Slice(0, sigmaDigit).ContainsAnyExcept(0u)); 583Debug.Assert(!r1.Slice(remainder.Length).ContainsAnyExcept(0u));
System\Numerics\BigIntegerCalculator.Utils.cs (2)
20Debug.Assert(left.Length <= right.Length || left.Slice(right.Length).ContainsAnyExcept(0u)); 21Debug.Assert(left.Length >= right.Length || right.Slice(left.Length).ContainsAnyExcept(0u));