MCPcopy Create free account
hub / github.com/ceph/ceph / _encode_payload_each

Method _encode_payload_each

src/msg/async/frames_v2.h:456–465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 2

encodeFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected