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