Example #1
0
        public bool IsDisjointFrom(ImmutableBitArray array)
        {
            Contract.Requires(!ReferenceEquals(array, null));
            Contract.Requires(array.Length == this.Length);

            return(this.data.IsDisjointFrom(array.data));
        }
Example #2
0
        /// <summary> Performs the AND operation on this array with the specified array. </summary>
        public void And(ImmutableBitArray array)
        {
            Contract.Requires(!ReferenceEquals(array, null));
            Contract.Requires(array.Length == this.Length);

            And(array.data);
        }
Example #3
0
 /// <summary> Gets whether all bits set in the specified array are set in this instance as well. </summary>
 /// <param name="array"> The bits to check. Must be commensurate to this array. </param>
 public bool Contains(ImmutableBitArray array)
 {
     return(this.data.Contains(array.data));
 }