2
0

CopyCoder.h 697 B

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