CyrusBuilt.MonoPi.BitSet.AndNot C# (CSharp) Method

AndNot() public method

Clears all of the bits in this bit set whose corresponding bit is set in the specified bit set.
/// cannot be null. ///
public AndNot ( BitSet bs ) : void
bs BitSet /// The bit set with which to mask this instance. ///
return void
		public void AndNot(BitSet bs) {
			if (bs == null) {
				throw new ArgumentNullException("bs");
			}

			Int32 i = Math.Min(this._bits.Length, bs._bits.Length);
			while (--i >= 0) {
				this._bits[i] &= ~bs._bits[i];
			}

			this.RecalculateWordsInUse();
			this.CheckInvariants();
		}