mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 06:53:43 +00:00
Add unpacktool
This commit is contained in:
23
unpacktool/CompactProLZHDecompressor.h
Normal file
23
unpacktool/CompactProLZHDecompressor.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#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;
|
||||
};
|
Reference in New Issue
Block a user