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

Method append_zeros

src/common/buffer.cc:602–611  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

600 }
601
602 unsigned buffer::ptr::append_zeros(unsigned l)
603 {
604 ceph_assert(_raw);
605 ceph_assert(l <= unused_tail_length());
606 char* c = _raw->get_data() + _off + _len;
607 // FIPS zeroization audit 20191115: this memset is not security related.
608 memset(c, 0, l);
609 _len += l;
610 return _len + _off;
611 }
612
613 void buffer::ptr::copy_in(unsigned o, unsigned l, const char *src, bool crc_reset)
614 {

Callers 1

append_zeroMethod · 0.80

Calls 1

get_dataMethod · 0.45

Tested by

no test coverage detected