Initial community commit
This commit is contained in:
34
Src/external_dependencies/openmpt-trunk/include/ancient/src/HFMNDecompressor.hpp
vendored
Normal file
34
Src/external_dependencies/openmpt-trunk/include/ancient/src/HFMNDecompressor.hpp
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
/* Copyright (C) Teemu Suutari */
|
||||
|
||||
#ifndef HFMNDECOMPRESSOR_HPP
|
||||
#define HFMNDECOMPRESSOR_HPP
|
||||
|
||||
#include "XPKDecompressor.hpp"
|
||||
|
||||
namespace ancient::internal
|
||||
{
|
||||
|
||||
class HFMNDecompressor : public XPKDecompressor
|
||||
{
|
||||
public:
|
||||
HFMNDecompressor(uint32_t hdr,uint32_t recursionLevel,const Buffer &packedData,std::shared_ptr<XPKDecompressor::State> &state,bool verify);
|
||||
|
||||
virtual ~HFMNDecompressor();
|
||||
|
||||
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;
|
||||
|
||||
size_t _headerSize;
|
||||
size_t _rawSize;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user