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

Method encode

src/osd/OSDMap.h:122–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120 map_t map;
121
122 void encode(ceph::buffer::list& bl) const {
123 using ceph::encode;
124 uint32_t n = map.size();
125 encode(n, bl);
126 for (auto &p : map) {
127 encode(p.first, bl);
128 bl.append((char*)p.second, (*p.second + 1) * sizeof(ceph_le32));
129 }
130 }
131 void decode(ceph::buffer::list::const_iterator& p) {
132 using ceph::decode;
133 data.clear();

Callers

nothing calls this directly

Calls 3

encodeFunction · 0.70
sizeMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected