| 36 | { |
| 37 | template<typename AppendageT> |
| 38 | inline void AppendBytes(std::vector<uint8_t>& bytes, const AppendageT appendage) |
| 39 | { |
| 40 | auto ptr = reinterpret_cast<const uint8_t*>(&appendage); |
| 41 | auto stride = static_cast<std::ptrdiff_t>(sizeof(AppendageT)); |
| 42 | bytes.insert(bytes.end(), ptr, ptr + stride); |
| 43 | } |
| 44 | |
| 45 | template<typename AppendageT = std::string&> |
| 46 | inline void AppendBytes(std::vector<uint8_t>& bytes, const std::string& string) |
no outgoing calls
no test coverage detected