Base::ByteArrayIStreambuf Class Reference

This class implements the streambuf interface to read data from a QByteArray. More...

#include <Stream.h>

Public Member Functions

 ByteArrayIStreambuf (const QByteArray &buf)
 
 ~ByteArrayIStreambuf ()
 

Protected Member Functions

virtual int_type pbackfail (int_type ch)
 
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 pos, std::ios_base::openmode which=std::ios::in|std::ios::out)
 
virtual std::streamsize showmanyc ()
 
virtual int_type uflow ()
 
virtual int_type underflow ()
 

Detailed Description

This class implements the streambuf interface to read data from a QByteArray.

This class can only be used for reading but not for writing purposes.

Author
Werner Mayer

Constructor & Destructor Documentation

◆ ByteArrayIStreambuf()

ByteArrayIStreambuf::ByteArrayIStreambuf ( const QByteArray &  buf)
explicit

◆ ~ByteArrayIStreambuf()

ByteArrayIStreambuf::~ByteArrayIStreambuf ( )

Member Function Documentation

◆ pbackfail()

ByteArrayIStreambuf::int_type ByteArrayIStreambuf::pbackfail ( int_type  ch)
protectedvirtual

◆ seekoff()

std::streambuf::pos_type ByteArrayIStreambuf::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 ByteArrayIStreambuf::seekpos ( std::streambuf::pos_type  pos,
std::ios_base::openmode  which = std::ios::in | std::ios::out 
)
protectedvirtual

References seekoff().

◆ showmanyc()

std::streamsize ByteArrayIStreambuf::showmanyc ( )
protectedvirtual

◆ uflow()

ByteArrayIStreambuf::int_type ByteArrayIStreambuf::uflow ( )
protectedvirtual

◆ underflow()

ByteArrayIStreambuf::int_type ByteArrayIStreambuf::underflow ( )
protectedvirtual

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