aboutsummaryrefslogtreecommitdiff
path: root/CPP/7zip/Archive/Common/DummyOutStream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'CPP/7zip/Archive/Common/DummyOutStream.cpp')
-rw-r--r--CPP/7zip/Archive/Common/DummyOutStream.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/CPP/7zip/Archive/Common/DummyOutStream.cpp b/CPP/7zip/Archive/Common/DummyOutStream.cpp
new file mode 100644
index 0000000..7c4f548
--- /dev/null
+++ b/CPP/7zip/Archive/Common/DummyOutStream.cpp
@@ -0,0 +1,17 @@
1// DummyOutStream.cpp
2
3#include "StdAfx.h"
4
5#include "DummyOutStream.h"
6
7STDMETHODIMP CDummyOutStream::Write(const void *data, UInt32 size, UInt32 *processedSize)
8{
9 UInt32 realProcessedSize = size;
10 HRESULT res = S_OK;
11 if (_stream)
12 res = _stream->Write(data, size, &realProcessedSize);
13 _size += realProcessedSize;
14 if (processedSize)
15 *processedSize = realProcessedSize;
16 return res;
17}