Byte stream buffer supporting both input and output, with auto-resizing.
Public Functions
-
inline bytestreambuf(std::vector<char> &data)
Create a bytestreambuf from a vector of data.
- Parameters:
data – The vector to use as a buffer
Protected Functions
-
inline int overflow(int ch) override
-
inline std::streamsize xsputn(const char *s, std::streamsize n) override
-
inline pos_type seekoff(off_type off, std::ios_base::seekdir dir, std::ios_base::openmode which = std::ios_base::in | std::ios_base::out) override
-
inline pos_type seekpos(pos_type pos, std::ios_base::openmode which = std::ios_base::in | std::ios_base::out) override