misc/libphysfs/lzma/CPP/7zip/Compress/Copy/CopyCoder.h
changeset 13881 99b265e0d1d0
parent 13880 5f819b90d479
child 13882 b172a5d40eee
equal deleted inserted replaced
13880:5f819b90d479 13881:99b265e0d1d0
     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