|
|
|
@ -23,11 +23,7 @@ public:
|
|
|
|
|
/** read in a block of memory */
|
|
|
|
|
TQ_LONG readBlock(char* data, long unsigned int maxLen);
|
|
|
|
|
/** query buffer size */
|
|
|
|
|
#ifdef USE_QT4
|
|
|
|
|
qint64 size() const;
|
|
|
|
|
#else // USE_QT4
|
|
|
|
|
TQ_ULONG size() const;
|
|
|
|
|
#endif // USE_QT4
|
|
|
|
|
/** No descriptions */
|
|
|
|
|
void flush();
|
|
|
|
|
/** Close buffer */
|
|
|
|
@ -45,11 +41,6 @@ public:
|
|
|
|
|
return &buf[0];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#ifdef USE_QT4
|
|
|
|
|
virtual inline qint64 readData ( char * data, qint64 maxSize ) { return readBlock(data, maxSize); }
|
|
|
|
|
virtual inline qint64 writeData ( const char * data, qint64 maxSize ) { return writeBlock(data, maxSize); }
|
|
|
|
|
#endif // USE_QT4
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
std::vector<char> buf;
|
|
|
|
|
std::vector<char>::iterator bufPos;
|
|
|
|
|