]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
buffer: Move functions touching buffer::raw internals into buffer.cc
authorTommi Virtanen <tommi.virtanen@dreamhost.com>
Wed, 6 Apr 2011 20:53:42 +0000 (13:53 -0700)
committerTommi Virtanen <tommi.virtanen@dreamhost.com>
Thu, 7 Apr 2011 17:53:19 +0000 (10:53 -0700)
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
src/common/buffer.cc
src/include/buffer.h

index 9869f28a6384b094fd89ef14ab90fe25b08889b2..25825819988c00bcf667b48de88ed68a44e9a25b 100644 (file)
@@ -387,4 +387,9 @@ void buffer::list::hexdump(std::ostream &out) const
   out.unsetf(std::ios::right);
 }
 
+std::ostream& operator<<(std::ostream& out, const buffer::raw &r) {
+  return out << "buffer::raw(" << (void*)r.data << " len " << r.len << " nref " << r.nref.read() << ")";
+}
+
+
 }
index 100ee71b8f133f7310bc44105abf16d1ccd54568..7ec4e089589175c3647083908267cf6482992da4 100644 (file)
@@ -1107,10 +1107,6 @@ inline bool operator<=(bufferlist& l, bufferlist& r) {
 }
 
 
-inline std::ostream& operator<<(std::ostream& out, const buffer::raw &r) {
-  return out << "buffer::raw(" << (void*)r.data << " len " << r.len << " nref " << r.nref.read() << ")";
-}
-
 inline std::ostream& operator<<(std::ostream& out, const buffer::ptr& bp) {
   if (bp.have_raw())
     out << "buffer::ptr(" << bp.offset() << "~" << bp.length()