mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-06-25 18:17:12 +08:00
Conflicts: Gopkg.lock pkg/appsrv/appsrv.go pkg/cloudcommon/options.go pkg/compute/models/hosts.go pkg/compute/models/quotas.go pkg/compute/service/service.go pkg/mcclient/mcclient.go
25 lines
347 B
Go
25 lines
347 B
Go
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() {}
|