Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
35
Src/external_dependencies/openmpt-trunk/include/ancient/src/DLTADecode.hpp
vendored
Normal file
35
Src/external_dependencies/openmpt-trunk/include/ancient/src/DLTADecode.hpp
vendored
Normal file
|
@ -0,0 +1,35 @@
|
|||
/* Copyright (C) Teemu Suutari */
|
||||
|
||||
#ifndef DLTADECODE_HPP
|
||||
#define DLTADECODE_HPP
|
||||
|
||||
#include "XPKDecompressor.hpp"
|
||||
|
||||
namespace ancient::internal
|
||||
{
|
||||
|
||||
|
||||
class DLTADecode : public XPKDecompressor
|
||||
{
|
||||
public:
|
||||
DLTADecode(uint32_t hdr,uint32_t recursionLevel,const Buffer &packedData,std::shared_ptr<XPKDecompressor::State> &state,bool verify);
|
||||
|
||||
virtual ~DLTADecode();
|
||||
|
||||
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);
|
||||
|
||||
// static method for easy external usage. Buffers can be the same for in-place replacement
|
||||
static void decode(Buffer &bufferDest,const Buffer &bufferSrc,size_t offset,size_t size);
|
||||
|
||||
private:
|
||||
const Buffer &_packedData;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue