Contains returns true if the integer is contained in the bitmap
(x uint64)
| 303 | |
| 304 | // Contains returns true if the integer is contained in the bitmap |
| 305 | func (rb *Bitmap) Contains(x uint64) bool { |
| 306 | hb := highbits(x) |
| 307 | c := rb.highlowcontainer.getContainer(hb) |
| 308 | return c != nil && c.Contains(lowbits(x)) |
| 309 | } |
| 310 | |
| 311 | // ContainsInt returns true if the integer is contained in the bitmap (this is a convenience method, the parameter is casted to uint64 and Contains is called) |
| 312 | func (rb *Bitmap) ContainsInt(x int) bool { |