| 138 | } |
| 139 | |
| 140 | static void write_bits( |
| 141 | std::vector<bool>& bits, unsigned& cursor, const std::vector<bool>& src) |
| 142 | { |
| 143 | for (bool bit : src) |
| 144 | { |
| 145 | if (cursor < bits.size()) |
| 146 | bits[cursor++] = bit; |
| 147 | } |
| 148 | } |
| 149 | |
| 150 | static void write_bits( |
| 151 | std::vector<bool>& bits, unsigned& cursor, uint64_t data, int width) |