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

Method append

src/common/buffer.cc:582–590  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

580 }
581
582 unsigned buffer::ptr::append(char c)
583 {
584 ceph_assert(_raw);
585 ceph_assert(1 <= unused_tail_length());
586 char* ptr = _raw->get_data() + _off + _len;
587 *ptr = c;
588 _len++;
589 return _len + _off;
590 }
591
592 unsigned buffer::ptr::append(const char *p, unsigned l)
593 {

Callers 4

copyMethod · 0.45
copy_allMethod · 0.45
to_strMethod · 0.45
spliceMethod · 0.45

Calls 15

set_lengthMethod · 0.80
createFunction · 0.70
maybe_inline_memcpyFunction · 0.50
push_backFunction · 0.50
appendFunction · 0.50
get_dataMethod · 0.45
getMethod · 0.45
push_backMethod · 0.45
releaseMethod · 0.45
backMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected