other-licenses/7zstub/src/7zip/Compress/Copy/CopyCoder.h

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

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

mercurial