How to write and read actual bits of boost dynamic_bitset to/from file?

那年仲夏 提交于 2021-01-29 17:25:29

问题


How can I write the actual bits of a vector of digits (for example: 65, 66, 67) into a file and then read them as well? I have previous code as well but It doesn't work properly. Writing above (65, 66, 67) should result in these "100000110000101000011" bits but it outputs "001100010100001000001". Here is the link to previous question containing code. Reading the dynamic bitset written data from file cannot read the correct data

How can I build write and read to/from file functions so that the actual bit reading/writing would work?

来源:https://stackoverflow.com/questions/65555032/how-to-write-and-read-actual-bits-of-boost-dynamic-bitset-to-from-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!