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

Method swap

src/common/buffer.cc:446–457  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

444 }
445
446 void buffer::ptr::swap(ptr& other) noexcept
447 {
448 raw *r = _raw;
449 unsigned o = _off;
450 unsigned l = _len;
451 _raw = other._raw;
452 _off = other._off;
453 _len = other._len;
454 other._raw = r;
455 other._off = o;
456 other._len = l;
457 }
458
459 void buffer::ptr::release()
460 {

Callers 15

jquery.jsFile · 0.45
handle_io_event_safeMethod · 0.45
append_sync_pointMethod · 0.45
update_snap_contextMethod · 0.45
decrypt_blMethod · 0.45
encrypt_blMethod · 0.45
take_inodeMethod · 0.45
take_old_inodeMethod · 0.45

Calls 1

swapFunction · 0.70

Tested by

no test coverage detected