mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 16:39:57 +00:00
API Buffered Write
.. when sending metrics, since if no selection is made it can result in thousands of needless updates !
This commit is contained in:
@@ -85,6 +85,11 @@ public:
|
||||
*/
|
||||
void write(QByteArray data, bool lastPart=false);
|
||||
|
||||
// buffered write
|
||||
void setBuffersize(int size) { buffersize=size; barry.reserve(size); }
|
||||
void bwrite(QByteArray data);
|
||||
void flush();
|
||||
|
||||
/**
|
||||
Indicates wheter the body has been sent completely. Used by the connection
|
||||
handler to terminate the body automatically when necessary.
|
||||
@@ -136,6 +141,8 @@ private:
|
||||
*/
|
||||
void writeHeaders();
|
||||
|
||||
int buffersize;
|
||||
QByteArray barry;
|
||||
};
|
||||
|
||||
#endif // HTTPRESPONSE_H
|
||||
|
||||
Reference in New Issue
Block a user