Class ubytestreambuf

Inheritance Relationships

Base Type

  • public std::streambuf

Class Documentation

class ubytestreambuf : public std::streambuf

Public Functions

inline ubytestreambuf(std::vector<unsigned char> &vec)

Create a bytestreambuf from a vector of data.

Parameters:

vec – 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