other-licenses/7zstub/src/7zip/Common/LimitedStreams.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/other-licenses/7zstub/src/7zip/Common/LimitedStreams.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,23 @@
     1.4 +// LimitedStreams.h
     1.5 +
     1.6 +#ifndef __LIMITEDSTREAMS_H
     1.7 +#define __LIMITEDSTREAMS_H
     1.8 +
     1.9 +#include "../../Common/MyCom.h"
    1.10 +#include "../IStream.h"
    1.11 +
    1.12 +class CLimitedSequentialInStream: 
    1.13 +  public ISequentialInStream,
    1.14 +  public CMyUnknownImp
    1.15 +{
    1.16 +  UInt64 _size;
    1.17 +  CMyComPtr<ISequentialInStream> _stream;
    1.18 +public:
    1.19 +  void Init(ISequentialInStream *stream, UInt64 streamSize);
    1.20 + 
    1.21 +  MY_UNKNOWN_IMP
    1.22 +
    1.23 +  STDMETHOD(Read)(void *data, UInt32 size, UInt32 *processedSize);
    1.24 +};
    1.25 +
    1.26 +#endif

mercurial