CyrusBuilt.MonoPi.BitSet.AndNot C# (CSharp) 메소드

AndNot() 공개 메소드

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. ///
리턴 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();
		}