kelindar / bitmap

Simple dense bitmap index in Go with binary operators
MIT License
306 stars 23 forks source link

Add checks for From/ToBytes #21

Closed kelindar closed 2 years ago

kelindar commented 2 years ago

Add checks to FromBytes() and ToBytes() methods when the input is nil. FromBytes() will now panic if the input buffer provided is not a multiple of 8. Fixes https://github.com/kelindar/bitmap/issues/20