You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

manyiterator.go 292B

123456789101112131415161718
  1. package roaring
  2. type manyIterable interface {
  3. nextMany(hs uint32, buf []uint32) int
  4. }
  5. func (si *shortIterator) nextMany(hs uint32, buf []uint32) int {
  6. n := 0
  7. l := si.loc
  8. s := si.slice
  9. for n < len(buf) && l < len(s) {
  10. buf[n] = uint32(s[l]) | hs
  11. l++
  12. n++
  13. }
  14. si.loc = l
  15. return n
  16. }