Binary Serialization of std::bitset

后端 未结 6 1637
醉酒成梦
醉酒成梦 2020-12-17 16:52

std::bitset has a to_string() method for serializing as a char-based string of 1s and 0s. Obviously, this us

6条回答
  •  自闭症患者
    2020-12-17 17:22

    As suggested by guys at gamedev.net, one can try using boost::dynamic_bitset since it allows access to internal representation of bitpacked data.

提交回复
热议问题