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

Function encode_destructively

src/include/encoding.h:304–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

302 bl.append(s);
303}
304inline void encode_destructively(bufferlist& s, bufferlist& bl)
305{
306 __u32 len = s.length();
307 encode(len, bl);
308 bl.claim_append(s);
309}
310inline void decode(bufferlist& s, bufferlist::const_iterator& p)
311{
312 __u32 len;

Callers 4

completeMethod · 0.85
finishMethod · 0.85
do_sparse_readMethod · 0.85
sparse_readMethod · 0.85

Calls 3

encodeFunction · 0.70
lengthMethod · 0.45
claim_appendMethod · 0.45

Tested by

no test coverage detected