7if (!
gzip.waitForStarted())
10gzip.write(
"uncompressed data");
13while (
gzip.waitForReadyRead())
19qint64 CustomDevice::bytesAvailable()
const
31 if (lineLength != -1) {
39bool CustomDevice::canReadLine()
const
51 return (
buf[0] ==
'M' &&
buf[1] ==
'Z');
bool open(OpenMode flags) override
Opens the file using OpenMode mode, returning true if successful; otherwise false.
qint64 readLine(char *data, qint64 maxlen)
This function reads a line of ASCII characters from the device, up to a maximum of maxSize - 1 bytes,...
qint64 peek(char *data, qint64 maxlen)
virtual qint64 bytesAvailable() const
Returns the number of bytes that are available for reading.
virtual bool canReadLine() const
Returns true if a complete line of data can be read from the device; otherwise returns false.
GLenum GLuint GLenum GLsizei const GLchar * buf
bool isExeFile(QFile *file)
[3]