Overte C++ Documentation
Gzip.h
1
//
2
// Gzip.h
3
// libraries/shared/src
4
//
5
// Created by Seth Alves on 2015-08-03.
6
// Copyright 2015 High Fidelity, Inc.
7
//
8
// Distributed under the Apache License, Version 2.0.
9
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
10
//
11
12
#ifndef GZIP_H
13
#define GZIP_H
14
15
#include <QByteArray>
16
17
// The compression level must be Z_DEFAULT_COMPRESSION (-1), or between 0 and
18
// 9: 1 gives best speed, 9 gives best compression, 0 gives no
19
// compression at all (the input data is simply copied a block at a
20
// time). Z_DEFAULT_COMPRESSION requests a default compromise between
21
// speed and compression (currently equivalent to level 6).
22
23
bool
gzip(QByteArray source, QByteArray &destination,
int
compressionLevel = -1);
// -1 is Z_DEFAULT_COMPRESSION
24
25
bool
gunzip(QByteArray source, QByteArray &destination);
26
27
#endif
libraries
shared
src
Gzip.h
Generated by
1.9.1