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

Method copy_out

src/common/buffer.cc:544–550  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

542 int buffer::ptr::raw_nref() const { ceph_assert(_raw); return _raw->nref; }
543
544 void buffer::ptr::copy_out(unsigned o, unsigned l, char *dest) const {
545 ceph_assert(_raw);
546 if (o+l > _len)
547 throw end_of_buffer();
548 char* src = _raw->get_data() + _off + o;
549 maybe_inline_memcpy(dest, src, l, 8);
550 }
551
552 unsigned buffer::ptr::wasted() const
553 {

Callers 4

TESTFunction · 0.45
TEST_PFunction · 0.45
readMethod · 0.45
copyMethod · 0.45

Calls 3

end_of_bufferClass · 0.70
maybe_inline_memcpyFunction · 0.50
get_dataMethod · 0.45

Tested by 2

TESTFunction · 0.36
TEST_PFunction · 0.36