mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-30 10:33:54 -07:00
19 lines
402 B
C++
19 lines
402 B
C++
#ifndef XZ_DECOMPRESS_H
|
|
#define XZ_DECOMPRESS_H
|
|
|
|
#include <lzma.h>
|
|
#include <QBuffer>
|
|
|
|
class XzDecompressor : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
XzDecompressor(QObject *parent = 0);
|
|
~XzDecompressor() { };
|
|
bool decompress(QBuffer *in, QBuffer *out);
|
|
private:
|
|
bool init_decoder(lzma_stream *strm);
|
|
bool internal_decompress(lzma_stream *strm, QBuffer *in, QBuffer *out);
|
|
};
|
|
|
|
#endif
|