| 238 | encode_nohead(std::string_view(s), bl); |
| 239 | } |
| 240 | inline void decode_nohead(unsigned len, std::string& s, bufferlist::const_iterator& p) |
| 241 | { |
| 242 | s.clear(); |
| 243 | p.copy(len, s); |
| 244 | } |
| 245 | |
| 246 | // const char* (encode only, string compatible) |
| 247 | inline void encode(const char *s, bufferlist& bl) |