mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-05-12 09:30:24 -05:00
34 lines
839 B
C++
Vendored
34 lines
839 B
C++
Vendored
/* Copyright (C) Teemu Suutari */
|
|
|
|
#ifndef CYB2DECODER_HPP
|
|
#define CYB2DECODER_HPP
|
|
|
|
#include "XPKDecompressor.hpp"
|
|
|
|
namespace ancient::internal
|
|
{
|
|
|
|
class CYB2Decoder : public XPKDecompressor
|
|
{
|
|
public:
|
|
CYB2Decoder(uint32_t hdr,uint32_t recursionLevel,const Buffer &packedData,std::shared_ptr<XPKDecompressor::State> &state,bool verify);
|
|
|
|
virtual ~CYB2Decoder();
|
|
|
|
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 _blockHeader;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|