14 #include <ff7tkutils_export.h>
16 class FF7TKUTILS_EXPORT
LZS
20 static const QByteArray &decompress(
const QByteArray &data,
int max);
21 static const QByteArray &decompress(
const char *data,
int fileSize,
int max);
22 static const QByteArray &decompressAll(
const QByteArray &data);
23 static const QByteArray &decompressAll(
const char *data,
int fileSize);
24 static const QByteArray &decompressAllWithHeader(
const QByteArray &data);
25 static const QByteArray &decompressAllWithHeader(
const char *data,
int size);
26 static const QByteArray &compress(
const QByteArray &fileData);
27 static const QByteArray &compress(
const char *data,
int sizeData);
28 static const QByteArray &compressWithHeader(
const QByteArray &fileData);
29 static const QByteArray &compressWithHeader(
const char *data,
int sizeData);
33 static void InsertNode(qint32 r);
34 static void DeleteNode(qint32 p);
35 static qint32 match_length;
36 static qint32 match_position;
37 static qint32 lson[4097];
38 static qint32 rson[4353];
39 static qint32 dad[4097];
40 static unsigned char text_buf[4113];
41 static QByteArray result;