Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '7zip/Archive/Common/DummyOutStream.h')
-rwxr-xr-x7zip/Archive/Common/DummyOutStream.h26
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