| 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 | { |