#include <mmembuf.h>
Public Member Functions | |
| MMembuf () | |
| ~MMembuf () | |
| void | append (QByteArray *ba) |
| void | clear () |
| bool | consumeBytes (quint64 nbytes, char *sink) |
| QByteArray | readAll () |
| bool | scanNewline (QByteArray *store) |
| bool | canReadLine () const |
| int | ungetch (int ch) |
| qint64 | size () const |
Private Attributes | |
| QList< QByteArray * > | buf |
| qint64 | _size |
| qint64 | _index |
Definition at line 61 of file mmembuf.h.
| MMembuf::MMembuf | ( | ) |
Definition at line 55 of file mmembuf.cpp.
| MMembuf::~MMembuf | ( | ) |
Definition at line 59 of file mmembuf.cpp.
| void MMembuf::append | ( | QByteArray * | ba | ) | [inline] |
Definition at line 86 of file mmembuf.h.
Referenced by BufferedSocketDevice::ReadBytes().
| void MMembuf::clear | ( | void | ) | [inline] |
Definition at line 89 of file mmembuf.h.
Referenced by BufferedSocketDevice::ClearReadBuffer(), and BufferedSocketDevice::Close().
| bool MMembuf::consumeBytes | ( | quint64 | nbytes, | |
| char * | sink | |||
| ) |
Definition at line 70 of file mmembuf.cpp.
Referenced by BufferedSocketDevice::At(), BufferedSocketDevice::Getch(), readAll(), and BufferedSocketDevice::ReadBlock().
| bool MMembuf::scanNewline | ( | QByteArray * | store | ) |
Definition at line 108 of file mmembuf.cpp.
Referenced by canReadLine(), BufferedSocketDevice::CanReadLine(), and BufferedSocketDevice::ReadLine().
| int MMembuf::ungetch | ( | int | ch | ) |
Definition at line 152 of file mmembuf.cpp.
Referenced by BufferedSocketDevice::Ungetch().
| qint64 MMembuf::size | ( | void | ) | const [inline] |
Definition at line 98 of file mmembuf.h.
Referenced by BufferedSocketDevice::At(), BufferedSocketDevice::AtEnd(), BufferedSocketDevice::Getch(), BufferedSocketDevice::ReadBlock(), and BufferedSocketDevice::ReadBytes().
QList<QByteArray *> MMembuf::buf [private] |
Definition at line 81 of file mmembuf.h.
Referenced by append(), clear(), consumeBytes(), scanNewline(), ungetch(), and ~MMembuf().
qint64 MMembuf::_size [private] |
Definition at line 82 of file mmembuf.h.
Referenced by append(), clear(), consumeBytes(), readAll(), scanNewline(), size(), and ungetch().
qint64 MMembuf::_index [private] |
Definition at line 83 of file mmembuf.h.
Referenced by clear(), consumeBytes(), scanNewline(), and ungetch().
1.6.3