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.

Author
Werner Mayer

Constructor & Destructor Documentation

◆ ByteArrayOStreambuf()

ByteArrayOStreambuf::ByteArrayOStreambuf ( QByteArray &  ba)
explicit

◆ ~ByteArrayOStreambuf()

ByteArrayOStreambuf::~ByteArrayOStreambuf ( )

Member Function Documentation

◆ overflow()

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

◆ 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 
)
protectedvirtual

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 
)
protectedvirtual

References seekoff().

◆ xsputn()

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

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