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

Method copy_all

src/common/buffer.cc:844–858  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

842
843 template<bool is_const>
844 void buffer::list::iterator_impl<is_const>::copy_all(list &dest)
845 {
846 if (p == ls->end())
847 seek(off);
848 while (1) {
849 if (p == ls->end())
850 return;
851
852 unsigned howmuch = p->length() - p_off;
853 const char *c_str = p->c_str();
854 dest.append(c_str + p_off, howmuch);
855
856 *this += howmuch;
857 }
858 }
859
860 template<bool is_const>
861 size_t buffer::list::iterator_impl<is_const>::get_ptr_and_advance(

Callers 11

do_encodeMethod · 0.80
decodeMethod · 0.80
_decompressMethod · 0.80
readMethod · 0.80
getMethod · 0.80
TESTFunction · 0.80
encode_nMethod · 0.80
handle_notifyMethod · 0.80
cloneMethod · 0.80
get_cloneMethod · 0.80
decompressMethod · 0.80

Calls 4

endMethod · 0.45
lengthMethod · 0.45
c_strMethod · 0.45
appendMethod · 0.45

Tested by 5

TESTFunction · 0.64
encode_nMethod · 0.64
handle_notifyMethod · 0.64
cloneMethod · 0.64
get_cloneMethod · 0.64