prime/include/Kyoto/Streams/CZipInputStream.hpp
Phillip Stephens 0613bb5ea4 Match and link all remaining stream classes
Former-commit-id: 55617d2753c4fce8712586c8e3418ff6865e49a3
2022-10-12 23:10:20 -07:00

26 lines
546 B
C++

#ifndef _CZIPINPUTSTREAM
#define _CZIPINPUTSTREAM
#include "types.h"
#include "Kyoto/Streams/CInputStream.hpp"
#include "rstl/auto_ptr.hpp"
#include "rstl/single_ptr.hpp"
#include "zlib/zlib.h"
class CZipInputStream : public CInputStream {
public:
CZipInputStream(rstl::auto_ptr< CInputStream > in);
~CZipInputStream() override;
size_t Read(void* dest, size_t len) override;
private:
rstl::single_ptr<uchar> mCompBuf;
rstl::auto_ptr< CInputStream > mStream;
rstl::single_ptr<z_stream_s> mZStream;
};
#endif // _CZIPINPUTSTREAM