BitSet from String?
garritfra opened this issue · 3 comments
garritfra commented
Hi,
I'm trying to construct a BitSet from a string, but BitSet only allows []uint64
as an input buffer.
Is there an easy way to do make a BitSet from a string or []byte
?
Thanks in advance!
lemire commented
I'm trying to construct a BitSet from a string
Can you elaborate? I am not sure how you'd build a bitset from a string.
garritfra commented
A string is a sequence of bytes, essentially []byte
. Just having []uint64
as the only source for a bitset seems unintuitive when where are other datatypes. Is there a reason for that?
lemire commented
A bitset is typically implemented using machine words. So 64-bit words.