/* Copyright (C) Teemu Suutari */ #ifndef FRLEDECOMPRESSOR_HPP #define FRLEDECOMPRESSOR_HPP #include "XPKDecompressor.hpp" namespace ancient::internal { class FRLEDecompressor : public XPKDecompressor { public: FRLEDecompressor(uint32_t hdr,uint32_t recursionLevel,const Buffer &packedData,std::shared_ptr &state,bool verify); virtual ~FRLEDecompressor(); virtual const std::string &getSubName() const noexcept override final; virtual void decompressImpl(Buffer &rawData,const Buffer &previousData,bool override) override final; static bool detectHeaderXPK(uint32_t hdr) noexcept; static std::shared_ptr create(uint32_t hdr,uint32_t recursionLevel,const Buffer &packedData,std::shared_ptr &state,bool verify); private: const Buffer &_packedData; }; } #endif