ff7tk  0.02
Toolkit for making FF7 Tools
LZS Class Reference

#include <LZS.h>

Static Public Member Functions

static const QByteArray & decompress (const QByteArray &data, int max)
 
static const QByteArray & decompress (const char *data, int fileSize, int max)
 
static const QByteArray & decompressAll (const QByteArray &data)
 
static const QByteArray & decompressAll (const char *data, int fileSize)
 
static const QByteArray & decompressAllWithHeader (const QByteArray &data)
 
static const QByteArray & decompressAllWithHeader (const char *data, int size)
 
static const QByteArray & compress (const QByteArray &fileData)
 
static const QByteArray & compress (const char *data, int sizeData)
 
static const QByteArray & compressWithHeader (const QByteArray &fileData)
 
static const QByteArray & compressWithHeader (const char *data, int sizeData)
 
static void clear ()
 

Static Private Member Functions

static void InsertNode (qint32 r)
 
static void DeleteNode (qint32 p)
 

Static Private Attributes

static qint32 match_length =0
 
static qint32 match_position =0
 
static qint32 lson [4097]
 
static qint32 rson [4353]
 
static qint32 dad [4097]
 
static unsigned char text_buf [4113]
 
static QByteArray result
 

Detailed Description

Definition at line 29 of file LZS.h.

Member Function Documentation

void LZS::clear ( )
static

Definition at line 438 of file LZS.cpp.

References result.

const QByteArray & LZS::compress ( const QByteArray &  fileData)
static

Definition at line 321 of file LZS.cpp.

Referenced by compressWithHeader().

const QByteArray & LZS::compress ( const char *  data,
int  sizeData 
)
static

Definition at line 326 of file LZS.cpp.

References dad, DeleteNode(), InsertNode(), match_length, match_position, result, rson, and text_buf.

const QByteArray & LZS::compressWithHeader ( const QByteArray &  fileData)
static

Definition at line 308 of file LZS.cpp.

const QByteArray & LZS::compressWithHeader ( const char *  data,
int  sizeData 
)
static

Definition at line 313 of file LZS.cpp.

References compress(), and result.

const QByteArray & LZS::decompress ( const QByteArray &  data,
int  max 
)
static

Definition at line 34 of file LZS.cpp.

const QByteArray & LZS::decompress ( const char *  data,
int  fileSize,
int  max 
)
static

Definition at line 39 of file LZS.cpp.

References result, and text_buf.

const QByteArray & LZS::decompressAll ( const QByteArray &  data)
static

Definition at line 103 of file LZS.cpp.

Referenced by decompressAllWithHeader().

const QByteArray & LZS::decompressAll ( const char *  data,
int  fileSize 
)
static

Definition at line 108 of file LZS.cpp.

References result, and text_buf.

const QByteArray & LZS::decompressAllWithHeader ( const QByteArray &  data)
static

Definition at line 165 of file LZS.cpp.

const QByteArray & LZS::decompressAllWithHeader ( const char *  data,
int  size 
)
static

Definition at line 170 of file LZS.cpp.

References decompressAll(), and result.

void LZS::DeleteNode ( qint32  p)
staticprivate

Definition at line 263 of file LZS.cpp.

References dad, lson, and rson.

Referenced by compress().

void LZS::InsertNode ( qint32  r)
staticprivate

Definition at line 188 of file LZS.cpp.

References dad, lson, match_length, match_position, rson, and text_buf.

Referenced by compress().

Member Data Documentation

qint32 LZS::dad
staticprivate

Definition at line 52 of file LZS.h.

Referenced by compress(), DeleteNode(), and InsertNode().

qint32 LZS::lson
staticprivate

Definition at line 50 of file LZS.h.

Referenced by DeleteNode(), and InsertNode().

qint32 LZS::match_length =0
staticprivate

Definition at line 48 of file LZS.h.

Referenced by compress(), and InsertNode().

qint32 LZS::match_position =0
staticprivate

Definition at line 49 of file LZS.h.

Referenced by compress(), and InsertNode().

QByteArray LZS::result
staticprivate
qint32 LZS::rson
staticprivate

Definition at line 51 of file LZS.h.

Referenced by compress(), DeleteNode(), and InsertNode().

unsigned char LZS::text_buf
staticprivate

Definition at line 53 of file LZS.h.

Referenced by compress(), decompress(), decompressAll(), and InsertNode().


The documentation for this class was generated from the following files: