23 #define GZIPPS_HEADER_SIZE 8 28 inline static QByteArray
decompress(
const QByteArray &data) {
29 return decompress(data.constData(), data.size());
31 inline static QByteArray
compress(
const QByteArray &ungzip,
const QByteArray &header,
int level = -1) {
32 return compress(ungzip.constData(), ungzip.size(), header, level);
34 inline static QByteArray
compress(
const QByteArray &ungzip, quint32 header,
int level = -1) {
35 return compress(ungzip.constData(), ungzip.size(), header, level);
37 static QByteArray
decompress(
const char *data,
int size);
38 static QByteArray
compress(
const char *ungzip,
int size,
const QByteArray &header,
int level = -1);
39 inline static QByteArray
compress(
const char *ungzip,
int size, quint32 header,
int level = -1) {
40 return compress(ungzip, size, QByteArray((
char *)&header, 4), level);
static QByteArray decompress(const QByteArray &data)
static QByteArray compress(const QByteArray &ungzip, const QByteArray &header, int level=-1)
static QByteArray compress(const char *ungzip, int size, quint32 header, int level=-1)
static QByteArray compress(const QByteArray &ungzip, quint32 header, int level=-1)