Base::ByteArrayOStreambuf Class Reference

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)

Detailed Description

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.

Werner Mayer

Constructor & Destructor Documentation

◆ ByteArrayOStreambuf()

ByteArrayOStreambuf::ByteArrayOStreambuf ( QByteArray &  ba)

◆ ~ByteArrayOStreambuf()

ByteArrayOStreambuf::~ByteArrayOStreambuf ( )

Member Function Documentation

◆ overflow()

std::streambuf::int_type ByteArrayOStreambuf::overflow ( std::streambuf::int_type  v)

◆ seekoff()

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 

Referenced by seekpos().

◆ seekpos()

std::streambuf::pos_type ByteArrayOStreambuf::seekpos ( std::streambuf::pos_type  sp,
std::ios_base::openmode  which = std::ios::in | std::ios::out 

References seekoff().

◆ xsputn()

std::streamsize ByteArrayOStreambuf::xsputn ( const char *  s,
std::streamsize  num 

The documentation for this class was generated from the following files: