Files

26 lines
546 B
C++
Raw Permalink Normal View History

#ifndef _CZIPINPUTSTREAM
#define _CZIPINPUTSTREAM
2022-09-13 00:26:54 -04:00
#include "types.h"
#include "Kyoto/Streams/CInputStream.hpp"
#include "rstl/auto_ptr.hpp"
2022-10-12 23:09:15 -07:00
#include "rstl/single_ptr.hpp"
#include "zlib/zlib.h"
2022-09-13 00:26:54 -04:00
class CZipInputStream : public CInputStream {
public:
CZipInputStream(rstl::auto_ptr< CInputStream > in);
2023-02-06 12:01:01 -05:00
~CZipInputStream() override;
size_t Read(void* dest, size_t len) override;
2022-09-13 00:26:54 -04:00
private:
2022-10-12 23:09:15 -07:00
rstl::single_ptr<uchar> mCompBuf;
rstl::auto_ptr< CInputStream > mStream;
rstl::single_ptr<z_stream_s> mZStream;
2022-09-13 00:26:54 -04:00
};
#endif // _CZIPINPUTSTREAM