20dword
UncompressTFD(
byte *pSrc,
byte *pDest,
void *pPercentFinishedCallback)
24 word compSize = 0, uncompSize = 0, NrBlocks = 0;
34 void (*PercentFinishedCallback) (dword PercentFinished) = pPercentFinishedCallback;
61 for(i = 0; i < NrBlocks; i++)
63 if(PercentFinishedCallback) PercentFinishedCallback(i * 100 / NrBlocks);
68 if(uncompSize > 0x7ffa)
78 if(compSize == uncompSize)
81 if(pDest) memcpy(pDest, pSrc, uncompSize);
94 if(pDest) pDest += uncompSize;
96 outSize += uncompSize;
98 if(PercentFinishedCallback) PercentFinishedCallback(100);
word CRC16(word StartValue, void *StartAddress, dword Length)
dword UncompressTFD(byte *pSrc, byte *pDest, void *pPercentFinishedCallback)
word UncompressBlock(byte *inputbuffer, word inputsize, byte *outputbuffer, word BufferSize)