Ejemplo n.º 1
0
 /// <summary>
 /// Given this and another bloom, bitwise-OR all the data to get a bloom filter representing a range of data.
 /// </summary>
 public void Or(BloomData bloom)
 {
     for (int i = 0; i < this.data.Length; ++i)
     {
         this.data[i] |= bloom.data[i];
     }
 }
Ejemplo n.º 2
0
        public bool Equals(BloomData obj)
        {
            if (object.ReferenceEquals(obj, null))
            {
                return(false);
            }

            if (object.ReferenceEquals(this, obj))
            {
                return(true);
            }

            return(obj == this);
        }