Maximum get the largest value stored in this roaring bitmap, assumes that it is not empty
()
| 297 | |
| 298 | // Maximum get the largest value stored in this roaring bitmap, assumes that it is not empty |
| 299 | func (rb *Bitmap) Maximum() uint64 { |
| 300 | lastindex := len(rb.highlowcontainer.containers) - 1 |
| 301 | return uint64(rb.highlowcontainer.containers[lastindex].Maximum()) | (uint64(rb.highlowcontainer.keys[lastindex]) << 32) |
| 302 | } |
| 303 | |
| 304 | // Contains returns true if the integer is contained in the bitmap |
| 305 | func (rb *Bitmap) Contains(x uint64) bool { |
no outgoing calls