LZ5Decompressor.hpp 600 B

123456789101112131415161718192021222324252627282930
  1. /* Copyright (C) Teemu Suutari */
  2. #ifndef LZ5DECOMPRESSOR_HPP
  3. #define LZ5DECOMPRESSOR_HPP
  4. #include "Decompressor.hpp"
  5. namespace ancient::internal
  6. {
  7. class LZ5Decompressor : public Decompressor
  8. {
  9. public:
  10. LZ5Decompressor(const Buffer &packedData);
  11. virtual ~LZ5Decompressor();
  12. virtual size_t getRawSize() const noexcept override final;
  13. virtual size_t getPackedSize() const noexcept override final;
  14. virtual const std::string &getName() const noexcept override final;
  15. virtual void decompressImpl(Buffer &rawData,bool verify) override final;
  16. private:
  17. const Buffer &_packedData;
  18. };
  19. }
  20. #endif