C/C++ efficient bit array

前端 未结 10 844
清酒与你
清酒与你 2020-11-29 02:15

Can you recommend efficient/clean way to manipulate arbitrary length bit array?

Right now I am using regular int/char bitmask, but those are not very clean when arra

10条回答
  •  鱼传尺愫
    2020-11-29 02:38

    I've written a working implementation based off Dale Hagglund's response to provide a bit array in C (BSD license).

    https://github.com/noporpoise/BitArray/

    Please let me know what you think / give suggestions. I hope people looking for a response to this question find it useful.

提交回复
热议问题