| 1 |
/* Copyright (C) Teemu Suutari */ |
| 2 |
|
| 3 |
#ifndef LHXDECOMPRESSOR_HPP |
| 4 |
#define LHXDECOMPRESSOR_HPP |
| 5 |
|
| 6 |
#include "Decompressor.hpp" |
| 7 |
|
| 8 |
namespace ancient::internal |
| 9 |
{ |
| 10 |
|
| 11 |
class LHXDecompressor : public Decompressor |
| 12 |
{ |
| 13 |
public: |
| 14 |
// by default LHX |
| 15 |
LHXDecompressor(const Buffer &packedDatam); |
| 16 |
LHXDecompressor(const Buffer &packedDatam,uint32_t method); |
| 17 |
virtual ~LHXDecompressor(); |
| 18 |
|
| 19 |
virtual size_t getRawSize() const noexcept override final; |
| 20 |
virtual size_t getPackedSize() const noexcept override final; |
| 21 |
|
| 22 |
virtual const std::string &getName() const noexcept override final; |
| 23 |
|
| 24 |
virtual void decompressImpl(Buffer &rawData,bool verify) override final; |
| 25 |
|
| 26 |
private: |
| 27 |
const Buffer &_packedData; |
| 28 |
|
| 29 |
uint32_t _method; |
| 30 |
}; |
| 31 |
|
| 32 |
} |
| 33 |
|
| 34 |
#endif |