32 using random_bytes_engine = std::independent_bits_engine<std::default_random_engine, CHAR_BIT, uint8_t>;
41 std::generate(buf_, buf_ + n, std::ref(rbe));
62 template <
typename T,
size_t N>
67 return std::bitset<N>(actual);
71 void set(T data,
size_t pos)
73 std::memcpy(&data, buf_ + pos,
sizeof(T));
BinParser getParser(bool skip=false)
std::bitset< N > getNext()
std::independent_bits_engine< std::default_random_engine, CHAR_BIT, uint8_t > random_bytes_engine