| 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 | { |
no test coverage detected