| 9 | namespace |
| 10 | { |
| 11 | void writeByte(std::vector<uint8_t>& data, int value) |
| 12 | { |
| 13 | data.emplace_back(static_cast<uint8_t>(value)); |
| 14 | } |
| 15 | void writeOptionalByte(std::vector<uint8_t>& data, std::optional<int> value) |
| 16 | { |
| 17 | data.emplace_back(static_cast<uint8_t>(value.value_or(-1))); |
no outgoing calls
no test coverage detected