}
};
-raw* create_foreign(temporary_buffer&& buf) {
- return new raw_seastar_foreign_ptr(std::move(buf));
-}
-
class raw_seastar_local_ptr : public raw {
temporary_buffer buf;
public:
}
};
+inline namespace v14_2_0 {
+
+raw* create_foreign(temporary_buffer&& buf) {
+ return new raw_seastar_foreign_ptr(std::move(buf));
+}
+
raw* create(temporary_buffer&& buf) {
return new raw_seastar_local_ptr(std::move(buf));
}
+} // inline namespace v14_2_0
+
// buffer::ptr conversions
ptr::operator seastar::temporary_buffer<char>() &
};
namespace buffer CEPH_BUFFER_API {
+inline namespace v14_2_0 {
+
/*
* exceptions
*/
raw* create(seastar::temporary_buffer<char>&& buf);
#endif
-inline namespace v14_2_0 {
-
/*
* a buffer pointer. references (a subsequence of) a raw buffer.
*/
std::ostream& operator<<(std::ostream& out, const buffer::ptr& bp);
-std::ostream& operator<<(std::ostream& out, const raw &r);
+std::ostream& operator<<(std::ostream& out, const buffer::raw &r);
std::ostream& operator<<(std::ostream& out, const buffer::list& bl);
#include "include/spinlock.h"
namespace ceph::buffer {
+inline namespace v14_2_0 {
+
class raw {
public:
// In the future we might want to have a slab allocator here with few
last_crc_offset.second = std::numeric_limits<size_t>::max();
}
};
+
+} // inline namespace v14_2_0
} // namespace ceph::buffer
#endif // CEPH_BUFFER_RAW_H