54 if (!
gzip.waitForStarted())
57 gzip.write(
"uncompressed data");
60 while (
gzip.waitForReadyRead())
66 qint64 CustomDevice::bytesAvailable()
const
78 if (lineLength != -1) {
86 bool CustomDevice::canReadLine()
const
98 return (
buf[0] ==
'M' &&
buf[1] ==
'Z');
The QByteArray class provides an array of bytes.
The QFile class provides an interface for reading from and writing to files.
bool open(OpenMode flags) override
qint64 readLine(char *data, qint64 maxlen)
qint64 peek(char *data, qint64 maxlen)
virtual qint64 bytesAvailable() const
virtual bool canReadLine() const
QList< QString > QStringList
GLenum GLuint GLenum GLsizei const GLchar * buf
bool isExeFile(QFile *file)
[3]