7 #include <ff7tkutils_export.h>
9 #define GZIPPS_HEADER_SIZE 8
14 inline static QByteArray
decompress(
const QByteArray &data)
16 return decompress(data.constData(), data.size());
18 inline static QByteArray
compress(
const QByteArray &ungzip,
const QByteArray &header,
int level = -1)
20 return compress(ungzip.constData(), ungzip.size(), header, level);
22 inline static QByteArray
compress(
const QByteArray &ungzip, quint32 header,
int level = -1)
24 return compress(ungzip.constData(), ungzip.size(), header, level);
26 static QByteArray decompress(
const char *data,
int size);
27 static QByteArray compress(
const char *ungzip,
int size,
const QByteArray &header,
int level = -1);
28 inline static QByteArray
compress(
const char *ungzip,
int size, quint32 header,
int level = -1)
30 return compress(ungzip, size, QByteArray((
char *)&header, 4), level);