filecoin-project/go-bitfield

Add Copy() method

Closed this issue · 0 comments

I have a need to clone a bitfield. From brief inspection, it looks like copying the structure won't have the desired outcome. I'm working around by merging the source bitfield with an empty one, but a copy method would be more ergonomic, and probably more efficient.