]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common: add PrebufferedStreambuf
authorSage Weil <sage@newdream.net>
Fri, 23 Mar 2012 13:02:48 +0000 (06:02 -0700)
committerSage Weil <sage@newdream.net>
Tue, 27 Mar 2012 17:41:15 +0000 (10:41 -0700)
commita4509273ce7e9952cdf208e0d5340bbe4a91b9d8
tree0294af0c006e1850ee1c3585a14a56cde767a910
parentabfadb9be4e22854842ecb46dafc5dba70da7e85
common: add PrebufferedStreambuf

Simple streambuf that uses a preallocated buffer, and then spills over
into a std::string if necessary.

Signed-off-by: Sage Weil <sage@newdream.net>
src/Makefile.am
src/common/PrebufferedStreambuf.cc [new file with mode: 0644]
src/common/PrebufferedStreambuf.h [new file with mode: 0644]
src/test/test_prebufferedstreambuf.cc [new file with mode: 0644]