QtBase
v6.3.1
|
#include <qdecompresshelper_p.h>
Public Types | |
enum | ContentEncoding { None , Deflate , GZip , Brotli , Zstandard } |
Public Member Functions | |
QDecompressHelper ()=default | |
~QDecompressHelper () | |
bool | setEncoding (const QByteArray &contentEncoding) |
bool | isCountingBytes () const |
void | setCountingBytesEnabled (bool shouldCount) |
qint64 | uncompressedSize () const |
bool | hasData () const |
void | feed (const QByteArray &data) |
void | feed (QByteArray &&data) |
void | feed (const QByteDataBuffer &buffer) |
void | feed (QByteDataBuffer &&buffer) |
qsizetype | read (char *data, qsizetype maxSize) |
bool | isValid () const |
void | clear () |
void | setDecompressedSafetyCheckThreshold (qint64 threshold) |
QString | errorString () const |
Static Public Member Functions | |
static bool | isSupportedEncoding (const QByteArray &encoding) |
static QByteArrayList | acceptedEncoding () |
Definition at line 62 of file qdecompresshelper_p.h.
Enumerator | |
---|---|
None | |
Deflate | |
GZip | |
Brotli | |
Zstandard |
Definition at line 65 of file qdecompresshelper_p.h.
|
default |
QDecompressHelper::~QDecompressHelper | ( | ) |
|
static |
Definition at line 112 of file qdecompresshelper.cpp.
void QDecompressHelper::clear | ( | ) |
Definition at line 553 of file qdecompresshelper.cpp.
QString QDecompressHelper::errorString | ( | ) | const |
void QDecompressHelper::feed | ( | const QByteArray & | data | ) |
Definition at line 258 of file qdecompresshelper.cpp.
void QDecompressHelper::feed | ( | const QByteDataBuffer & | buffer | ) |
void QDecompressHelper::feed | ( | QByteArray && | data | ) |
void QDecompressHelper::feed | ( | QByteDataBuffer && | buffer | ) |
Definition at line 298 of file qdecompresshelper.cpp.
bool QDecompressHelper::hasData | ( | ) | const |
Definition at line 510 of file qdecompresshelper.cpp.
bool QDecompressHelper::isCountingBytes | ( | ) | const |
|
static |
bool QDecompressHelper::isValid | ( | ) | const |
Definition at line 383 of file qdecompresshelper.cpp.
void QDecompressHelper::setCountingBytesEnabled | ( | bool | shouldCount | ) |
Definition at line 220 of file qdecompresshelper.cpp.
bool QDecompressHelper::setEncoding | ( | const QByteArray & | contentEncoding | ) |
qint64 QDecompressHelper::uncompressedSize | ( | ) | const |