mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-25 01:14:07 +00:00
25 lines
565 B
C++
25 lines
565 B
C++
#ifndef __DECOMPRESS_HH_INCLUDED__
|
|
#define __DECOMPRESS_HH_INCLUDED__
|
|
|
|
#include <QByteArray>
|
|
#include <string>
|
|
|
|
using std::string;
|
|
|
|
QByteArray zlibDecompress( const char * bufptr, unsigned length );
|
|
|
|
string decompressZlib( const char * bufptr, unsigned length );
|
|
|
|
string decompressBzip2( const char * bufptr, unsigned length );
|
|
|
|
#ifdef MAKE_ZIM_SUPPORT
|
|
|
|
string decompressLzma2( const char * bufptr, unsigned length,
|
|
bool raw_decoder = false );
|
|
|
|
string decompressZstd( const char * bufptr, unsigned length );
|
|
|
|
#endif
|
|
|
|
#endif // DECOMPRESS_HH
|