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

Method copy_in

src/common/buffer.cc:613–622  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

611 }
612
613 void buffer::ptr::copy_in(unsigned o, unsigned l, const char *src, bool crc_reset)
614 {
615 ceph_assert(_raw);
616 ceph_assert(o <= _len);
617 ceph_assert(o+l <= _len);
618 char* dest = _raw->get_data() + _off + o;
619 if (crc_reset)
620 _raw->invalidate_crc();
621 maybe_inline_memcpy(dest, src, l, 64);
622 }
623
624 void buffer::ptr::zero(bool crc_reset)
625 {

Callers 15

prepare_copyupMethod · 0.45
readMethod · 0.45
_flush_envelope_FMethod · 0.45
add_tailMethod · 0.45
encode_inodestatMethod · 0.45
TESTFunction · 0.45
appendMethod · 0.45
writeMethod · 0.45
write_fullMethod · 0.45
writesameMethod · 0.45
TESTFunction · 0.45

Calls 7

end_of_bufferClass · 0.70
maybe_inline_memcpyFunction · 0.50
get_dataMethod · 0.45
invalidate_crcMethod · 0.45
endMethod · 0.45
lengthMethod · 0.45
c_strMethod · 0.45

Tested by 10

TESTFunction · 0.36
appendMethod · 0.36
writeMethod · 0.36
write_fullMethod · 0.36
writesameMethod · 0.36
TESTFunction · 0.36
ec_decode_acting_setMethod · 0.36
TEST_FFunction · 0.36