KIOBufferBase Class Reference
base for I/O buffer implementation More...
#include <kiobuffer.h>
Public Member Functions | |
KIOBufferBase () | |
KIOBufferBase (const KIOBufferBase &) | |
virtual | ~KIOBufferBase () |
KIOBufferBase & | operator= (const KIOBufferBase &) |
virtual bool | canReadLine () const =0 |
virtual QCString | readLine ()=0 |
virtual Q_LONG | length () const =0 |
bool | isEmpty () const |
virtual Q_LONG | size () const =0 |
bool | isFull () const |
virtual bool | setSize (Q_LONG size)=0 |
virtual Q_LONG | feedBuffer (const char *data, Q_LONG len)=0 |
virtual Q_LONG | consumeBuffer (char *data, Q_LONG maxlen, bool discard=true)=0 |
virtual void | clear ()=0 |
Detailed Description
base for I/O buffer implementationThis class declares the base methods to interface with an I/O buffer. Most applications will not need to access this class directly, since it is all handled by KBufferedSocket and other buffering classes.
- Author:
- Thiago Macieira <thiago.macieira@kdemail.net>
Definition at line 42 of file kiobuffer.h.
Constructor & Destructor Documentation
|
Default constructor. Does nothing. Definition at line 48 of file kiobuffer.h. |
|
Copy constructor. Does nothing here. Definition at line 54 of file kiobuffer.h. |
|
Virtual destructor. Does nothing. Definition at line 60 of file kiobuffer.h. |
Member Function Documentation
|
Assignment operator. Does nothing. Definition at line 66 of file kiobuffer.h. |
|
Returns true if a line can be read from the buffer.
|
|
Reads a line from the buffer and discards it.
|
|
Returns the number of bytes in the buffer. Note that this is not the size of the buffer.
|
|
Returns true if the buffer is empty of data.
Definition at line 90 of file kiobuffer.h. References length(). |
|
Retrieves the buffer size. The value of -1 indicates that the buffer has no defined upper limit.
Referenced by isFull(). |
|
Returns true if the buffer is full (i.e., cannot receive more data).
Definition at line 104 of file kiobuffer.h. |
|
Sets the size of the buffer, if allowed.
|
|
Adds data to the end of the buffer.
|
|
Consumes data from the beginning of the buffer.
|
|
Clears the buffer.
|
The documentation for this class was generated from the following file: