-1:000000000000 | 0:c78c7eab20de |
---|---|
1 // LimitedStreams.h | |
2 | |
3 #ifndef __LIMITEDSTREAMS_H | |
4 #define __LIMITEDSTREAMS_H | |
5 | |
6 #include "../../Common/MyCom.h" | |
7 #include "../IStream.h" | |
8 | |
9 class CLimitedSequentialInStream: | |
10 public ISequentialInStream, | |
11 public CMyUnknownImp | |
12 { | |
13 UInt64 _size; | |
14 CMyComPtr<ISequentialInStream> _stream; | |
15 public: | |
16 void Init(ISequentialInStream *stream, UInt64 streamSize); | |
17 | |
18 MY_UNKNOWN_IMP | |
19 | |
20 STDMETHOD(Read)(void *data, UInt32 size, UInt32 *processedSize); | |
21 }; | |
22 | |
23 #endif |