winamp/Src/external_dependencies/openmpt-trunk/include/ancient/src/LZW2Decompressor.hpp

34 lines
858 B
C++

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