25 lines
347 B
Go
Raw Normal View History

2022-03-10 10:44:48 +01:00
package bitmap
import "github.com/RoaringBitmap/roaring"
type Iter struct {
ii roaring.IntIterable
}
func (me *Iter) Next() bool {
if me == nil {
return false
}
return me.ii.HasNext()
}
func (me *Iter) Value() interface{} {
return me.ValueInt()
}
func (me *Iter) ValueInt() int {
return int(me.ii.Next())
}
func (me *Iter) Stop() {}