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}
18