19 #ifndef INCLUDE_RCF_REALLOCBUFFER_HPP
20 #define INCLUDE_RCF_REALLOCBUFFER_HPP
22 #include <boost/shared_ptr.hpp>
24 #include <RCF/Export.hpp>
28 class RCF_EXPORT ReallocBuffer
33 ReallocBuffer(std::size_t size);
37 void resize(std::size_t newSize);
39 std::size_t capacity();
43 char & operator[](std::size_t pos);
44 const char & operator[](std::size_t pos)
const;
50 std::size_t mCapacity;
53 typedef boost::shared_ptr<ReallocBuffer> ReallocBufferPtr;
58 #endif // ! INCLUDE_RCF_REALLOCBUFFER_HPP