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

Method ToBitSet

roaring.go:436–438  ·  view source on GitHub ↗

ToBitSet copies the content of the RoaringBitmap into a bitset.BitSet instance

()

Source from the content-addressed store, hash-verified

434
435// ToBitSet copies the content of the RoaringBitmap into a bitset.BitSet instance
436func (rb *Bitmap) ToBitSet() *bitset.BitSet {
437 return bitset.From(rb.ToDense())
438}
439
440// FromBitSet creates a new RoaringBitmap from a bitset.BitSet instance
441func FromBitSet(bitset *bitset.BitSet) *Bitmap {

Callers 1

TestFromBitSetFunction · 0.80

Calls 1

ToDenseMethod · 0.95

Tested by 1

TestFromBitSetFunction · 0.64