| 137 | } |
| 138 | |
| 139 | std::string Param::to_bytes(void) const { |
| 140 | std::string res; |
| 141 | std::map<std::string, ParamVal> ordered_vals( |
| 142 | TypedRef(ParamImpl, m_impl.get()).m_vals.begin(), |
| 143 | TypedRef(ParamImpl, m_impl.get()).m_vals.end()); |
| 144 | for (auto&& kv : ordered_vals) { |
| 145 | res += ParamVal::to_bytes(kv.second); |
| 146 | } |
| 147 | return res; |
| 148 | } |
| 149 | |
| 150 | void Param::from_bytes(const std::string& bytes) { |
| 151 | std::map<std::string, ParamVal> ordered_vals( |