mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 23:00:42 +00:00
24 lines
543 B
C++
24 lines
543 B
C++
#pragma once
|
|
|
|
#include "LZSSDecompressor.h"
|
|
#include "IFileReader.h"
|
|
|
|
class XADPrefixCode;
|
|
|
|
class CompactProLZHDecompressor : public LZSSDecompressor
|
|
{
|
|
public:
|
|
explicit CompactProLZHDecompressor(int blocksize);
|
|
~CompactProLZHDecompressor();
|
|
|
|
private:
|
|
bool nextLiteralOrOffset(int *offset, int *length, int &result) override;
|
|
bool resetLZSSHandle() override;
|
|
|
|
XADPrefixCode *allocAndParseCodeOfSize(int size);
|
|
|
|
XADPrefixCode *literalcode, *lengthcode, *offsetcode;
|
|
int blocksize, blockcount;
|
|
IFileReader::FilePos_t blockstart;
|
|
};
|