diff options
Diffstat (limited to '7zip/Archive/Common/DummyOutStream.h')
-rwxr-xr-x | 7zip/Archive/Common/DummyOutStream.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/7zip/Archive/Common/DummyOutStream.h b/7zip/Archive/Common/DummyOutStream.h new file mode 100755 index 00000000..85ff6dbf --- /dev/null +++ b/7zip/Archive/Common/DummyOutStream.h @@ -0,0 +1,26 @@ +// DummyOutStream.h + +#pragma once + +#ifndef __DUMMYOUTSTREAM_H +#define __DUMMYOUTSTREAM_H + +#include "../../IStream.h" +#include "Common/MyCom.h" + +class CDummyOutStream: + public ISequentialOutStream, + public CMyUnknownImp +{ +public: + MY_UNKNOWN_IMP + + STDMETHOD(Write)(const void *data, UINT32 size, UINT32 *processedSize); + STDMETHOD(WritePart)(const void *data, UINT32 size, UINT32 *processedSize); +private: + CMyComPtr<ISequentialOutStream> m_Stream; +public: + void Init(ISequentialOutStream *outStream); +}; + +#endif |