2 #ifndef comfrm_cls_DataStreamH
3 #define comfrm_cls_DataStreamH
8 #include <boost/noncopyable.hpp>
13 class MAC_DLLEXPORT
VectorBuf :
public std::streambuf, boost::noncopyable
16 const int m_reallocationAddition = 4;
19 explicit VectorBuf(std::vector< char >& p_vector);
23 int_type overflow(int_type ch);
27 std::vector< char >& m_vector;
42 , m_vectorbuf(p_vector)
44 this->init(&m_vectorbuf);
52 return m_vectorbuf.in_avail();
Векторный поток
Definition: streamtools.h:35
size_t bytesAvailable()
Definition: streamtools.h:50
Definition: streamtools.h:13