You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Could not deserialize bitmap for key #0: error in roaringArray.readFrom: did not find expected serialCookie in header" on v1.8.0 when reading a bitmap written by roaring64
#411
Per the io.Reader documentation, it is acceptable for an implementation to read 0 <= n <= len(p) bytes on each call to Read. I've found that roaring64.Bitmap.ReadFrom returns the following error when passed an io.Reader that reads less than len(p) bytes on calls to Read:
Could not deserialize bitmap for key #0: error in roaringArray.readFrom: did not find expected serialCookie in header
panic: Could not deserialize bitmap for key #0: error in roaringArray.readFrom: did not find expected serialCookie in header
goroutine 1 [running]:
main.main()
main.go:24 +0x12d
exit status 2
The text was updated successfully, but these errors were encountered:
Per the io.Reader documentation, it is acceptable for an implementation to read
0 <= n <= len(p)
bytes on each call toRead
. I've found thatroaring64.Bitmap.ReadFrom
returns the following error when passed anio.Reader
that reads less thanlen(p)
bytes on calls toRead
:To replicate:
main.go
with the following contents:go.mod
with the following contents:go mod tidy
go run main.go
ReadFrom
:The text was updated successfully, but these errors were encountered: