Upload 2.0.2
[physicsfs] / lzma / CPP / 7zip / Compress / Copy / CopyCoder.h
1 // Compress/CopyCoder.h
2
3 #ifndef __COMPRESS_COPYCODER_H
4 #define __COMPRESS_COPYCODER_H
5
6 #include "../../ICoder.h"
7 #include "../../../Common/MyCom.h"
8
9 namespace NCompress {
10
11 class CCopyCoder: 
12   public ICompressCoder,
13   public ICompressGetInStreamProcessedSize,
14   public CMyUnknownImp
15 {
16   Byte *_buffer;
17 public:
18   UInt64 TotalSize;
19   CCopyCoder(): TotalSize(0) , _buffer(0) {};
20   ~CCopyCoder();
21
22   MY_UNKNOWN_IMP1(ICompressGetInStreamProcessedSize)
23
24   STDMETHOD(Code)(ISequentialInStream *inStream,
25       ISequentialOutStream *outStream, 
26       const UInt64 *inSize, const UInt64 *outSize,
27       ICompressProgressInfo *progress);
28   STDMETHOD(GetInStreamProcessedSize)(UInt64 *value);
29 };
30
31 }
32
33 #endif