30#include <tdelibs_export.h>
102 virtual TQ_LONG
size()
const = 0;
126 virtual TQ_LONG
feedBuffer(
const char *data, TQ_LONG len) = 0;
136 virtual TQ_LONG
consumeBuffer(
char *data, TQ_LONG maxlen,
bool discard =
true) = 0;
base for I/O buffer implementation
virtual TQ_LONG size() const =0
Retrieves the buffer size.
virtual bool setSize(TQ_LONG size)=0
Sets the size of the buffer, if allowed.
virtual TQ_LONG consumeBuffer(char *data, TQ_LONG maxlen, bool discard=true)=0
Consumes data from the beginning of the buffer.
virtual TQ_LONG feedBuffer(const char *data, TQ_LONG len)=0
Adds data to the end of the buffer.
virtual ~TDEIOBufferBase()
Virtual destructor.
virtual bool canReadLine() const =0
Returns true if a line can be read from the buffer.
TDEIOBufferBase(const TDEIOBufferBase &)
Copy constructor.
TDEIOBufferBase()
Default constructor.
virtual void clear()=0
Clears the buffer.
bool isEmpty() const
Returns true if the buffer is empty of data.
virtual TQCString readLine()=0
Reads a line from the buffer and discards it.
TDEIOBufferBase & operator=(const TDEIOBufferBase &)
Assignment operator.
bool isFull() const
Returns true if the buffer is full (i.e., cannot receive more data)
virtual TQ_LONG length() const =0
Returns the number of bytes in the buffer.