mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2025-12-30 09:38:26 -05:00
Bumps [github.com/blevesearch/bleve/v2](https://github.com/blevesearch/bleve) from 2.4.4 to 2.5.0. - [Release notes](https://github.com/blevesearch/bleve/releases) - [Commits](https://github.com/blevesearch/bleve/compare/v2.4.4...v2.5.0) --- updated-dependencies: - dependency-name: github.com/blevesearch/bleve/v2 dependency-version: 2.5.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
33 lines
539 B
Go
33 lines
539 B
Go
package roaring
|
|
|
|
type manyIterable interface {
|
|
nextMany(hs uint32, buf []uint32) int
|
|
nextMany64(hs uint64, buf []uint64) int
|
|
}
|
|
|
|
func (si *shortIterator) nextMany(hs uint32, buf []uint32) int {
|
|
n := 0
|
|
l := si.loc
|
|
s := si.slice
|
|
for n < len(buf) && l < len(s) {
|
|
buf[n] = uint32(s[l]) | hs
|
|
l++
|
|
n++
|
|
}
|
|
si.loc = l
|
|
return n
|
|
}
|
|
|
|
func (si *shortIterator) nextMany64(hs uint64, buf []uint64) int {
|
|
n := 0
|
|
l := si.loc
|
|
s := si.slice
|
|
for n < len(buf) && l < len(s) {
|
|
buf[n] = uint64(s[l]) | hs
|
|
l++
|
|
n++
|
|
}
|
|
si.loc = l
|
|
return n
|
|
}
|