metaforce/Runtime/Streams/CZipInputStream.hpp

22 lines
454 B
C++
Raw Normal View History

#pragma once
#include "CInputStream.hpp"
#include <memory>
#include <zlib.h>
namespace metaforce {
2022-03-22 08:37:10 +00:00
class CZipInputStream final : public CInputStream {
std::unique_ptr<u8[]> x24_compBuf;
std::unique_ptr<CInputStream> x28_strm;
std::unique_ptr<z_stream> x30_zstrm = {};
2022-03-22 08:37:10 +00:00
u32 Read(void* ptr, u32 len) override;
public:
explicit CZipInputStream(std::unique_ptr<CInputStream>&& strm);
~CZipInputStream() override;
};
} // namespace metaforce