Debian Codegraph @

src/attic/Zip/ZIPDecompressor.hpp

raw
1 /* Copyright (C) Teemu Suutari */
2
3 #ifndef ZIPDECOMPRESSOR_HPP
4 #define ZIPDECOMPRESSOR_HPP
5
6 #include "Decompressor.hpp"
7
8 namespace ancient::internal
9 {
10
11 class ZIPDecompressor : public Decompressor
12 {
13 public:
14 ZIPDecompressor(const Buffer &packedData,uint32_t method,uint32_t flags);
15 virtual ~ZIPDecompressor();
16
17 virtual size_t getRawSize() const noexcept override final;
18 virtual size_t getPackedSize() const noexcept override final;
19
20 virtual const std::string &getName() const noexcept override final;
21
22 virtual void decompressImpl(Buffer &rawData,bool verify) override final;
23
24 private:
25 const Buffer &_packedData;
26
27 uint32_t _method;
28 uint32_t _flags;
29 };
30
31 }
32
33 #endif