Contains returns true if the integer is contained in the bitmap
(x uint32)
| 1058 | |
| 1059 | // Contains returns true if the integer is contained in the bitmap |
| 1060 | func (rb *Bitmap) Contains(x uint32) bool { |
| 1061 | hb := highbits(x) |
| 1062 | c := rb.highlowcontainer.getContainer(hb) |
| 1063 | return c != nil && c.contains(lowbits(x)) |
| 1064 | } |
| 1065 | |
| 1066 | // ContainsInt returns true if the integer is contained in the bitmap (this is a convenience method, the parameter is casted to uint32 and Contains is called) |
| 1067 | func (rb *Bitmap) ContainsInt(x int) bool { |