p-ranav / alpaca

Serialization library written in C++17 - Pack C++ structs into a compact byte-array without any macros or boilerplate code
MIT License
476 stars 43 forks source link

Bitfield support #21

Open DakshKK opened 1 year ago

DakshKK commented 1 year ago

As far as I can make out with my tests there is no support for bitfield struct serialization in Alpaca. Is there any way to achieve this, and give a standardized method to implement it for a large number of structs.

finger563 commented 10 months ago

Similarly, support for std::bitset and space-optimized std::vector<bool> would provide related functionality.