Sharpen.BitSet.SubtractInPlace C# (CSharp) Method

SubtractInPlace() public method

public SubtractInPlace ( BitSet a ) : void
a BitSet
return void
        public virtual void SubtractInPlace(BitSet a)
        {
            if (a == null)
                return;
            // for all words of 'a', turn off corresponding bits of 'this'
            for (int i = 0; i < dataBits.Length && i < a.dataBits.Length; i++)
            {
                dataBits[i] &= ~a.dataBits[i];
            }
        }