KDECore
k3socketbuffer_p.h
Go to the documentation of this file.
bool setSize(qint64 size)
Sets the size of the buffer, if allowed.
Definition: k3socketbuffer.cpp:133
bool canReadLine() const
Returns true if a line can be read from the buffer.
Definition: k3socketbuffer.cpp:69
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
qint64 feedBuffer(const char *data, qint64 len)
Adds data to the end of the buffer.
Definition: k3socketbuffer.cpp:150
QList< QByteArray > m_list
Definition: k3socketbuffer_p.h:167
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
KSocketBuffer & operator=(const KSocketBuffer &other)
Assignment operator.
Definition: k3socketbuffer.cpp:56
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.