| 454 | |
| 455 | template <typename T> |
| 456 | inline void _encode_payload_each(T &t) { |
| 457 | if constexpr (std::is_same<T, std::vector<uint32_t> const>()) { |
| 458 | encode((uint32_t)t.size(), this->get_payload_segment(), features); |
| 459 | for (const auto &elem : t) { |
| 460 | encode(elem, this->get_payload_segment(), features); |
| 461 | } |
| 462 | } else { |
| 463 | encode(t, this->get_payload_segment(), features); |
| 464 | } |
| 465 | } |
| 466 | |
| 467 | template <typename T> |
| 468 | inline void _decode_payload_each(T &t, bufferlist::const_iterator &ti) const { |