]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
buffer: add iterator copy_shallow() to ptr
authorSage Weil <sage@redhat.com>
Mon, 19 Sep 2016 00:10:17 +0000 (19:10 -0500)
committerSage Weil <sage@redhat.com>
Sun, 16 Oct 2016 14:32:49 +0000 (10:32 -0400)
commit14cad5655dceb73eaf89133a5f39667f2aa8c202
tree8a221758808027c2853315711274c241da69986f
parent6d7f7486537059af47e15bffa7ca9edf91e83966
buffer: add iterator copy_shallow() to ptr

If the length resides within the bufferlist's current ptr, return a ptr
to the same buffer.

Signed-off-by: Sage Weil <sage@redhat.com>
src/common/buffer.cc
src/include/buffer.h
src/test/bufferlist.cc