A
Allen
I use bitset to save bits of flag. When data is ready, I need to copy
bit values from it to byte buffer. How to do it?
Example.
#include <bitset>
int main()
{
char buffer[32];
std::bitset<256> fcbits;
fcbits.set(1);
fcbits.set(54);
// fcbits -> buffer?
}
Allen
bit values from it to byte buffer. How to do it?
Example.
#include <bitset>
int main()
{
char buffer[32];
std::bitset<256> fcbits;
fcbits.set(1);
fcbits.set(54);
// fcbits -> buffer?
}
Allen