Equals returns true if the two bitmaps contain the same integers
(o interface{})
| 1070 | |
| 1071 | // Equals returns true if the two bitmaps contain the same integers |
| 1072 | func (rb *Bitmap) Equals(o interface{}) bool { |
| 1073 | srb, ok := o.(*Bitmap) |
| 1074 | if ok { |
| 1075 | return srb.highlowcontainer.equals(rb.highlowcontainer) |
| 1076 | } |
| 1077 | return false |
| 1078 | } |
| 1079 | |
| 1080 | // AddOffset adds the value 'offset' to each and every value in a bitmap, generating a new bitmap in the process |
| 1081 | func AddOffset(x *Bitmap, offset uint32) (answer *Bitmap) { |