MCPcopy
hub / github.com/RoaringBitmap/roaring / Equals

Method Equals

roaring.go:1072–1078  ·  view source on GitHub ↗

Equals returns true if the two bitmaps contain the same integers

(o interface{})

Source from the content-addressed store, hash-verified

1070
1071// Equals returns true if the two bitmaps contain the same integers
1072func (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
1081func AddOffset(x *Bitmap, offset uint32) (answer *Bitmap) {

Callers 15

TestBitmapCOWFunction · 0.95
TestDoubleAddCOWFunction · 0.95
TestInPlaceCOWContainersFunction · 0.95
TestBitmapFunction · 0.95
TestDoubleAddFunction · 0.95
TestGobcoding043Function · 0.95

Calls 1

equalsMethod · 0.65

Tested by 15

TestBitmapCOWFunction · 0.76
TestDoubleAddCOWFunction · 0.76
TestInPlaceCOWContainersFunction · 0.76
TestBitmapFunction · 0.76
TestDoubleAddFunction · 0.76
TestGobcoding043Function · 0.76