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

Function BitmapOf

roaring64/roaring64.go:1001–1005  ·  view source on GitHub ↗

BitmapOf generates a new bitmap filled with the specified integers

(dat ...uint64)

Source from the content-addressed store, hash-verified

999
1000// BitmapOf generates a new bitmap filled with the specified integers
1001func BitmapOf(dat ...uint64) *Bitmap {
1002 ans := NewBitmap()
1003 ans.AddMany(dat)
1004 return ans
1005}
1006
1007// Flip negates the bits in the given range (i.e., [rangeStart,rangeEnd)), any integer present in this range and in the bitmap is removed,
1008// and any integer present in the range and not in the bitmap is added.

Callers 15

TestBase64_036Function · 0.70
testAggregationsFunction · 0.70
TestSetManyFunction · 0.70
TestNewBSIRetainSetFunction · 0.70
TestIncrementSimpleFunction · 0.70

Calls 2

AddManyMethod · 0.95
NewBitmapFunction · 0.70

Tested by 15

TestBase64_036Function · 0.56
testAggregationsFunction · 0.56
TestSetManyFunction · 0.56
TestNewBSIRetainSetFunction · 0.56
TestIncrementSimpleFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…