2020-07-09 21:35:34 +00:00
|
|
|
//
|
|
|
|
// LZB Encode / Decode
|
|
|
|
//
|
|
|
|
#ifndef LZB_H
|
|
|
|
#define LZB_H
|
|
|
|
|
|
|
|
//
|
|
|
|
// returns the size of data saved into the pDest Buffer
|
|
|
|
//
|
|
|
|
int LZB_Compress(unsigned char* pDest, unsigned char* pSource, int sourceSize);
|
2020-07-16 23:05:36 +00:00
|
|
|
int Old_LZB_Compress(unsigned char* pDest, unsigned char* pSource, int sourceSize);
|
2020-07-09 21:35:34 +00:00
|
|
|
void LZB_Decompress(unsigned char* pDest, unsigned char* pSource, int destSize);
|
|
|
|
|
2020-07-18 19:49:27 +00:00
|
|
|
//
|
|
|
|
// LZB Compressor that uses GSLA Opcodes while encoding
|
|
|
|
//
|
|
|
|
int LZBA_Compress(unsigned char* pDest, unsigned char* pSource, int sourceSize, unsigned char* pDataStart, unsigned char* pDictionary, int dictionarySize=0);
|
|
|
|
int LZBA_Decompress(unsigned char* pDest, unsigned char* pSource, unsigned char* pDataStart);
|
|
|
|
|
2020-07-09 21:35:34 +00:00
|
|
|
#endif // LZB_H
|
|
|
|
|