KDECore
k3socketbuffer.cpp
Go to the documentation of this file.
bool setSize(qint64 size)
Sets the size of the buffer, if allowed.
Definition: k3socketbuffer.cpp:133
void clear()
bool canReadLine() const
Returns true if a line can be read from the buffer.
Definition: k3socketbuffer.cpp:69
const T & at(int i) const
bool isFull() const
Returns true if the buffer is full (i.e., cannot receive more data)
Definition: k3socketbuffer_p.h:117
qint64 receiveFrom(KActiveSocketBase *device, qint64 len=-1)
Tries to receive len bytes of data from the I/O device.
Definition: k3socketbuffer.cpp:293
int size() const
qint64 feedBuffer(const char *data, qint64 len)
Adds data to the end of the buffer.
Definition: k3socketbuffer.cpp:150
int indexOf(char ch, int from) const
void append(const T &value)
void truncate(int pos)
void remove()
QList< QByteArray > m_list
Definition: k3socketbuffer_p.h:167
virtual qint64 bytesAvailable() const
qint64 write(const char *data, qint64 len)
Writes the given data to the socket.
Definition: k3socketbase.cpp:404
T & peekNext() const
bool hasNext() const
qint64 sendTo(KActiveSocketBase *device, qint64 len=-1)
Sends at most len bytes of data to the I/O Device.
Definition: k3socketbuffer.cpp:228
qint64 readLine(char *data, qint64 maxSize)
Reads a line from the buffer and discard it from the buffer.
Definition: k3socketbuffer.cpp:88
T & next()
KSocketBuffer & operator=(const KSocketBuffer &other)
Assignment operator.
Definition: k3socketbuffer.cpp:56
char * data()
int size() const
qint64 consumeBuffer(char *data, qint64 maxlen, bool discard=true)
Consumes data from the beginning of the buffer.
Definition: k3socketbuffer.cpp:170
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.