| 10 | #include "context.h" |
| 11 | |
| 12 | static Bytes fakeBits(const std::vector<bool>& bits) |
| 13 | { |
| 14 | Bytes result; |
| 15 | ByteWriter bw(result); |
| 16 | |
| 17 | auto it = bits.begin(); |
| 18 | while (it != bits.end()) |
| 19 | { |
| 20 | uint8_t b = (*it++) << 4; |
| 21 | if (it != bits.end()) |
| 22 | b |= *it++; |
| 23 | bw.write_8(b); |
| 24 | } |
| 25 | |
| 26 | return result; |
| 27 | } |
| 28 | |
| 29 | class ExplorerPanelImpl : |
| 30 | public ExplorerPanelGen, |
no test coverage detected