diff options
Diffstat (limited to '')
| -rw-r--r-- | CPP/7zip/Archive/Common/DummyOutStream.cpp | 17 |
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 | |||
| 7 | STDMETHODIMP 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 | } | ||
