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

Method encode

src/msg/msg_types.cc:343–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

341}
342
343void entity_addrvec_t::encode(ceph::buffer::list& bl, uint64_t features) const
344{
345 using ceph::encode;
346 if ((features & CEPH_FEATURE_MSG_ADDR2) == 0) {
347 // encode a single legacy entity_addr_t for unfeatured peers
348 encode(legacy_addr(), bl, 0);
349 return;
350 }
351 encode((__u8)2, bl);
352 encode(v, bl, features);
353}
354
355void entity_addrvec_t::decode(ceph::buffer::list::const_iterator& bl)
356{

Callers

nothing calls this directly

Calls 1

encodeFunction · 0.70

Tested by

no test coverage detected