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

Method AddInt

roaring.go:1205–1207  ·  view source on GitHub ↗

AddInt adds the integer x to the bitmap (convenience method: the parameter is casted to uint32 and we call Add)

(x int)

Source from the content-addressed store, hash-verified

1203
1204// AddInt adds the integer x to the bitmap (convenience method: the parameter is casted to uint32 and we call Add)
1205func (rb *Bitmap) AddInt(x int) {
1206 rb.Add(uint32(x))
1207}
1208
1209// Remove the integer x from the bitmap
1210func (rb *Bitmap) Remove(x uint32) {

Callers 15

TestBitmapCOWFunction · 0.95
TestXORtest4COWFunction · 0.95
rTestCOWFunction · 0.95
TestAndNotCOWFunction · 0.95
hashTestFunction · 0.95
TestBitmapFunction · 0.95
TestXORtest4Function · 0.95
rTestFunction · 0.95
TestAndNotFunction · 0.95

Calls 1

AddMethod · 0.95

Tested by 15

TestBitmapCOWFunction · 0.76
TestXORtest4COWFunction · 0.76
rTestCOWFunction · 0.76
TestAndNotCOWFunction · 0.76
hashTestFunction · 0.76
TestBitmapFunction · 0.76
TestXORtest4Function · 0.76
rTestFunction · 0.76
TestAndNotFunction · 0.76