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

Method ptr

src/common/buffer.cc:365–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

363 }
364
365 buffer::ptr::ptr(ceph::unique_leakable_ptr<raw> r)
366 : _raw(r.release()),
367 _off(0),
368 _len(_raw->get_len())
369 {
370 _raw->nref.store(1, std::memory_order_release);
371 bdout << "ptr " << this << " get " << _raw << bendl;
372 }
373 buffer::ptr::ptr(unsigned l) : _off(0), _len(l)
374 {
375 _raw = buffer::create(l).release();

Callers

nothing calls this directly

Calls 5

createFunction · 0.70
copyFunction · 0.50
releaseMethod · 0.45
get_lenMethod · 0.45
storeMethod · 0.45

Tested by

no test coverage detected