bits-and-blooms/bitset

BitSet from String?

garritfra opened this issue · 3 comments

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!

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.

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?

A bitset is typically implemented using machine words. So 64-bit words.