MCPcopy Create free account
hub / github.com/RoaringBitmap/roaring / equalsArray

Function equalsArray

roaring_test.go:2619–2629  ·  view source on GitHub ↗
(a []int, b *Bitmap)

Source from the content-addressed store, hash-verified

2617}
2618
2619func equalsArray(a []int, b *Bitmap) bool {
2620 if uint64(len(a)) != b.GetCardinality() {
2621 return false
2622 }
2623 for _, x := range a {
2624 if !b.ContainsInt(x) {
2625 return false
2626 }
2627 }
2628 return true
2629}
2630
2631func IntsEquals(a, b []uint32) bool {
2632 if len(a) != len(b) {

Callers

nothing calls this directly

Calls 2

GetCardinalityMethod · 0.45
ContainsIntMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…