This class implements the streambuf interface to write data to a QByteArray. More...
#include <Stream.h>
Public Member Functions | |
ByteArrayOStreambuf (QByteArray &ba) | |
~ByteArrayOStreambuf () | |
Protected Member Functions | |
virtual int_type | overflow (std::streambuf::int_type v) |
virtual pos_type | seekoff (std::streambuf::off_type off, std::ios_base::seekdir way, std::ios_base::openmode which=std::ios::in|std::ios::out) |
virtual pos_type | seekpos (std::streambuf::pos_type sp, std::ios_base::openmode which=std::ios::in|std::ios::out) |
virtual std::streamsize | xsputn (const char *s, std::streamsize num) |
This class implements the streambuf interface to write data to a QByteArray.
This class can only be used for writing but not for reading purposes.
Definition at line 129 of file Stream.h.
ByteArrayOStreambuf::ByteArrayOStreambuf | ( | QByteArray & | ba | ) | [explicit] |
Definition at line 230 of file Stream.cpp.
ByteArrayOStreambuf::~ByteArrayOStreambuf | ( | ) |
Definition at line 235 of file Stream.cpp.
std::streambuf::int_type ByteArrayOStreambuf::overflow | ( | std::streambuf::int_type | v | ) | [protected, virtual] |
Definition at line 242 of file Stream.cpp.
std::streambuf::pos_type ByteArrayOStreambuf::seekoff | ( | std::streambuf::off_type | off, | |
std::ios_base::seekdir | way, | |||
std::ios_base::openmode | which = std::ios::in | std::ios::out | |||
) | [protected, virtual] |
std::streambuf::pos_type ByteArrayOStreambuf::seekpos | ( | std::streambuf::pos_type | sp, | |
std::ios_base::openmode | which = std::ios::in | std::ios::out | |||
) | [protected, virtual] |
Definition at line 292 of file Stream.cpp.
References seekoff().
std::streamsize ByteArrayOStreambuf::xsputn | ( | const char * | s, | |
std::streamsize | num | |||
) | [protected, virtual] |
Definition at line 253 of file Stream.cpp.