Files

35 lines
774 B
C
Raw Permalink Normal View History

2021-10-19 21:27:23 +01:00
// Compress/CopyCoder.h
2023-09-24 03:13:03 +01:00
#ifndef ZIP7_INC_COMPRESS_COPY_CODER_H
#define ZIP7_INC_COMPRESS_COPY_CODER_H
2021-10-19 21:27:23 +01:00
#include "../../Common/MyCom.h"
#include "../ICoder.h"
namespace NCompress {
2023-09-24 03:13:03 +01:00
Z7_CLASS_IMP_COM_5(
CCopyCoder
, ICompressCoder
, ICompressSetInStream
, ISequentialInStream
, ICompressSetFinishMode
, ICompressGetInStreamProcessedSize
)
2021-10-19 21:27:23 +01:00
Byte *_buf;
CMyComPtr<ISequentialInStream> _inStream;
public:
UInt64 TotalSize;
2023-09-24 03:13:03 +01:00
CCopyCoder(): _buf(NULL), TotalSize(0) {}
2021-10-19 21:27:23 +01:00
~CCopyCoder();
};
HRESULT CopyStream(ISequentialInStream *inStream, ISequentialOutStream *outStream, ICompressProgressInfo *progress);
HRESULT CopyStream_ExactSize(ISequentialInStream *inStream, ISequentialOutStream *outStream, UInt64 size, ICompressProgressInfo *progress);
}
#endif