diff -r 000000000000 -r 6474c204b198 other-licenses/7zstub/src/7zip/Common/LimitedStreams.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/other-licenses/7zstub/src/7zip/Common/LimitedStreams.h Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,23 @@ +// LimitedStreams.h + +#ifndef __LIMITEDSTREAMS_H +#define __LIMITEDSTREAMS_H + +#include "../../Common/MyCom.h" +#include "../IStream.h" + +class CLimitedSequentialInStream: + public ISequentialInStream, + public CMyUnknownImp +{ + UInt64 _size; + CMyComPtr _stream; +public: + void Init(ISequentialInStream *stream, UInt64 streamSize); + + MY_UNKNOWN_IMP + + STDMETHOD(Read)(void *data, UInt32 size, UInt32 *processedSize); +}; + +#endif