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

Method copy_deep

src/common/buffer.cc:775–784  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

773
774 template<bool is_const>
775 void buffer::list::iterator_impl<is_const>::copy_deep(unsigned len, ptr &dest)
776 {
777 if (!len) {
778 return;
779 }
780 if (p == ls->end())
781 throw end_of_buffer();
782 dest = create(len);
783 copy(len, dest.c_str());
784 }
785 template<bool is_const>
786 void buffer::list::iterator_impl<is_const>::copy_shallow(unsigned len,
787 ptr &dest)

Callers 7

decodeMethod · 0.80
decode_noshareFunction · 0.80
TESTFunction · 0.80
encode_nMethod · 0.80
append_cloneMethod · 0.80
TEST_PFunction · 0.80
decode_dataMethod · 0.80

Calls 5

end_of_bufferClass · 0.70
createFunction · 0.70
copyFunction · 0.50
endMethod · 0.45
c_strMethod · 0.45

Tested by 4

TESTFunction · 0.64
encode_nMethod · 0.64
append_cloneMethod · 0.64
TEST_PFunction · 0.64