Skip to content

Commit

Permalink
Update roaring64.go
Browse files Browse the repository at this point in the history
  • Loading branch information
lemire authored Nov 15, 2022
1 parent f0a4620 commit 4bebc4f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions roaring64/roaring64.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ func (rb *Bitmap) ToBytes() ([]byte, error) {
}

// WriteTo writes a serialized version of this bitmap to stream.
// The format is compatible with other 64-bit RoaringBitmap
// implementations (Java, Go, C++) and it has a specification :
// https://github.com/RoaringBitmap/RoaringFormatSpec#extention-for-64-bit-implementations
func (rb *Bitmap) WriteTo(stream io.Writer) (int64, error) {

var n int64
Expand Down Expand Up @@ -78,9 +81,9 @@ func (rb *Bitmap) WriteTo(stream io.Writer) (int64, error) {
}

// ReadFrom reads a serialized version of this bitmap from stream.
// The format is compatible with other RoaringBitmap
// implementations (Java, C) and is documented here:
// https://github.com/RoaringBitmap/RoaringFormatSpec
// The format is compatible with other 64-bit RoaringBitmap
// implementations (Java, Go, C++) and it has a specification :
// https://github.com/RoaringBitmap/RoaringFormatSpec#extention-for-64-bit-implementations
func (rb *Bitmap) ReadFrom(stream io.Reader) (p int64, err error) {
cookie, r32, p, err := tryReadFromRoaring32(rb, stream)
if err != nil {
Expand Down

0 comments on commit 4bebc4f

Please sign in to comment.