]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
buffer: abstract raw data related methods
authorJosh Durgin <josh.durgin@inktank.com>
Wed, 16 Oct 2013 23:23:36 +0000 (16:23 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Sat, 23 Nov 2013 00:13:36 +0000 (16:13 -0800)
commitebb261f9780669aba1963f7216ebc653204f659a
treebf66d8cbb6ad47cfa4b3d9e82944b9345fc24f0f
parent5832e2603c7db5d40b433d0953408993a9b7c217
buffer: abstract raw data related methods

Create a virtual function that returns the raw data instead of
accessing it directly, so raw buffers backed by pipes can be used as
buffer::ptrs. Make raw::is_page_aligned() virtual so it will not need
to look at the raw data for a pipe-based buffer.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
src/common/buffer.cc