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

Function BitmapOf

roaring.go:1947–1951  ·  view source on GitHub ↗

BitmapOf generates a new bitmap filled with the specified integers

(dat ...uint32)

Source from the content-addressed store, hash-verified

1945
1946// BitmapOf generates a new bitmap filled with the specified integers
1947func BitmapOf(dat ...uint32) *Bitmap {
1948 ans := NewBitmap()
1949 ans.AddMany(dat)
1950 return ans
1951}
1952
1953// Flip negates the bits in the given range (i.e., [rangeStart,rangeEnd)), any integer present in this range and in the bitmap is removed,
1954// and any integer present in the range and not in the bitmap is added.

Callers 15

TestExample_roaring060Function · 0.70
TestRoaring_OrThenAndFunction · 0.70
TestRoaringIntervalCheckFunction · 0.70
TestNextManyFunction · 0.70
TestNextAndPreviousValueFunction · 0.70
TestArrayContainerIandFunction · 0.70
TestBase64_036Function · 0.70

Calls 2

AddManyMethod · 0.95
NewBitmapFunction · 0.70

Tested by 15

TestExample_roaring060Function · 0.56
TestRoaring_OrThenAndFunction · 0.56
TestRoaringIntervalCheckFunction · 0.56
TestNextManyFunction · 0.56
TestNextAndPreviousValueFunction · 0.56
TestArrayContainerIandFunction · 0.56
TestBase64_036Function · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…