56 references to ContainsAnyExcept
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\Activity.cs (1)
2058return !idData.ContainsAnyExcept(s_hexLowerChars) && idData.ContainsAnyExcept('0');
System.Formats.Tar (2)
System\Formats\Tar\TarHeader.Read.cs (1)
593bool 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)
1357if (!tensor.Strides.ContainsAnyExcept(0)) 1430if (!tensor.Strides.ContainsAnyExcept(0)) 1507if (!tensor.Strides.ContainsAnyExcept(0))
System.Private.CoreLib (33)
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)
1245if ((source.Length > sizeof(char)) && (source[..^sizeof(char)].ContainsAnyExcept((byte)0x00))) 1295if ((source.Length > sizeof(char)) && (source[sizeof(char)..].ContainsAnyExcept((byte)0x00)))
src\libraries\System.Private.CoreLib\src\System\Collections\BitArray.cs (2)
846if (_array.AsSpan(0, byteCount).ContainsAnyExcept((byte)0xFF)) 873if (_array.AsSpan(0, byteCount).ContainsAnyExcept((byte)0))
src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentDictionary.cs (1)
1933!_tables._countPerLock.AsSpan().ContainsAnyExcept(0);
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (1)
1239if (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)
365if (source[..^sizeof(nint_t)].ContainsAnyExcept((byte)sign)) 447if (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)
351if ((source.Length > sizeof(nuint_t)) && (source[..^sizeof(nuint_t)].ContainsAnyExcept((byte)0x00))) 408if ((source.Length > sizeof(nuint_t)) && (source[sizeof(nuint_t)..].ContainsAnyExcept((byte)0x00)))
System.Runtime.Numerics (15)
src\libraries\Common\src\System\Number.Parsing.Common.cs (1)
306return !value.Slice(index).ContainsAnyExcept(TChar.CastFrom('\0'));
System\Number.BigInteger.cs (1)
260if (bits.AsSpan().ContainsAnyExcept(0u))
System\Numerics\BigInteger.cs (2)
654return BitOperations.IsPow2(_bits[iu]) && !_bits.AsSpan(0, iu).ContainsAnyExcept(0u); 2690if (neg && (carry != 0 || bits.Slice(0, digitShift).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.SquMul.cs (6)
26Debug.Assert(!bits.ContainsAnyExcept(0u)); 573Debug.Assert(!buffer.ContainsAnyExcept(0u)); 615Debug.Assert(!pm2.ContainsAnyExcept(0u)); 652Debug.Assert(!buffer.ContainsAnyExcept(0u)); 705Debug.Assert(!buffer.ContainsAnyExcept(0u)); 922Debug.Assert(!left.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));
System.Security.Cryptography (2)
System\Security\Cryptography\Aes.cs (1)
383if (header != 0xA65959A6 || pad > 7 || destination.Slice(slen).ContainsAnyExcept((byte)0))
System\Security\Cryptography\SymmetricPadding.cs (1)
167if (block.Slice(block.Length - padBytes, padBytes - 1).ContainsAnyExcept((byte)0))