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

Method copy

src/common/buffer.cc:286–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284 };
285
286 ceph::unique_leakable_ptr<buffer::raw> buffer::copy(const char *c, unsigned len) {
287 auto r = buffer::create_aligned(len, sizeof(size_t));
288 memcpy(r->get_data(), c, len);
289 return r;
290 }
291
292 ceph::unique_leakable_ptr<buffer::raw> buffer::create(unsigned len) {
293 return buffer::create_aligned(len, sizeof(size_t));

Callers 15

decodeMethod · 0.45
decode_extraMethod · 0.45
readMethod · 0.45
_writeMethod · 0.45
ll_read_blockMethod · 0.45
_fallocateMethod · 0.45
_reexecFunction · 0.45
_buildFunction · 0.45
_install_pip_depsFunction · 0.45
command_logsFunction · 0.45
_get_device_infoMethod · 0.45
from_containerMethod · 0.45

Calls 7

end_of_bufferClass · 0.70
get_dataMethod · 0.45
endMethod · 0.45
lengthMethod · 0.45
copy_outMethod · 0.45
appendMethod · 0.45
c_strMethod · 0.45

Tested by 1

test_remove_lvsMethod · 0.36