MCPcopy Create free account
hub / github.com/RoaringBitmap/roaring / Maximum

Method Maximum

roaring64/roaring64.go:299–302  ·  view source on GitHub ↗

Maximum get the largest value stored in this roaring bitmap, assumes that it is not empty

()

Source from the content-addressed store, hash-verified

297
298// Maximum get the largest value stored in this roaring bitmap, assumes that it is not empty
299func (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
305func (rb *Bitmap) Contains(x uint64) bool {

Callers 2

TestFirstLastFunction · 0.45
Test64BitValuesFunction · 0.45

Calls

no outgoing calls

Tested by 2

TestFirstLastFunction · 0.36
Test64BitValuesFunction · 0.36