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

Method Or

runcontainer.go:2770–2779  ·  view source on GitHub ↗

Or returns the union of rc and b.

(b *Bitmap)

Source from the content-addressed store, hash-verified

2768
2769// Or returns the union of rc and b.
2770func (rc *runContainer16) Or(b *Bitmap) *Bitmap {
2771 out := b.Clone()
2772 for _, p := range rc.iv {
2773 plast := p.last()
2774 for v := p.start; v <= plast; v++ {
2775 out.Add(uint32(v))
2776 }
2777 }
2778 return out
2779}
2780
2781// serializedSizeInBytes returns the number of bytes of memory
2782// required by this runContainer16. This is for the

Callers

nothing calls this directly

Calls 3

lastMethod · 0.80
CloneMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected