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

Method AddInt

roaring64/roaring64.go:350–352  ·  view source on GitHub ↗

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

(x int)

Source from the content-addressed store, hash-verified

348
349// AddInt adds the integer x to the bitmap (convenience method: the parameter is casted to uint64 and we call Add)
350func (rb *Bitmap) AddInt(x int) {
351 rb.Add(uint64(x))
352}
353
354// Remove the integer x from the bitmap
355func (rb *Bitmap) Remove(x uint64) {

Callers 15

TestBitmapCOWFunction · 0.95
TestXORtest4COWFunction · 0.95
rTestCOWFunction · 0.95
TestAndNotCOWFunction · 0.95
TestBitmapFunction · 0.95
TestXORtest4Function · 0.95
rTestFunction · 0.95
TestAndNotFunction · 0.95
TestReverseIteratorFunction · 0.45
TestFlip64COWFunction · 0.45

Calls 1

AddMethod · 0.95

Tested by 15

TestBitmapCOWFunction · 0.76
TestXORtest4COWFunction · 0.76
rTestCOWFunction · 0.76
TestAndNotCOWFunction · 0.76
TestBitmapFunction · 0.76
TestXORtest4Function · 0.76
rTestFunction · 0.76
TestAndNotFunction · 0.76
TestReverseIteratorFunction · 0.36
TestFlip64COWFunction · 0.36