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>
19 lines
486 B
Go
19 lines
486 B
Go
package roaring
|
|
|
|
import (
|
|
"encoding/binary"
|
|
"io"
|
|
)
|
|
|
|
// writeTo for runContainer16 follows this
|
|
// spec: https://github.com/RoaringBitmap/RoaringFormatSpec
|
|
func (b *runContainer16) writeTo(stream io.Writer) (int, error) {
|
|
buf := make([]byte, 2+4*len(b.iv))
|
|
binary.LittleEndian.PutUint16(buf[0:], uint16(len(b.iv)))
|
|
for i, v := range b.iv {
|
|
binary.LittleEndian.PutUint16(buf[2+i*4:], v.start)
|
|
binary.LittleEndian.PutUint16(buf[2+2+i*4:], v.length)
|
|
}
|
|
return stream.Write(buf)
|
|
}
|