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

Method copy

src/msg/async/dpdk/Packet.h:117–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115 }
116
117 static std::unique_ptr<impl> copy(impl* old, size_t nr) {
118 auto n = allocate(nr);
119 n->_deleter = std::move(old->_deleter);
120 n->_len = old->_len;
121 n->_nr_frags = old->_nr_frags;
122 n->headroom = old->headroom;
123 n->_offload_info = old->_offload_info;
124 n->rss_hash = old->rss_hash;
125 std::copy(old->frags, old->frags + old->_nr_frags, n->frags);
126 old->copy_internal_fragment_to(n.get());
127 return n;
128 }
129
130 static std::unique_ptr<impl> copy(impl* old) {
131 return copy(old, old->_nr_frags);

Callers 7

decodeMethod · 0.45
xattr_setMethod · 0.45
_truncate_inodeMethod · 0.45
decodeMethod · 0.45
decodeMethod · 0.45
handle_commandMethod · 0.45
messageMethod · 0.45

Calls 3

copyFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected