| 27 | } |
| 28 | |
| 29 | auto parseLinePrefix(char const* line) { |
| 30 | struct { |
| 31 | size_t byteCount, address, recordType; char const* rest; |
| 32 | } res; |
| 33 | using namespace boost::pfr; |
| 34 | tie_from_structure (res.byteCount, line) = parseHex(line, 2); |
| 35 | tie_from_structure (res.address, line) = parseHex(line, 4); |
| 36 | tie_from_structure (res.recordType, line) = parseHex(line, 2); |
| 37 | res.rest = line; |
| 38 | return res; |
| 39 | } |
| 40 | |
| 41 | int main() { |
| 42 | auto line = "0860E000616263646566000063"; |
no test coverage detected