mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-10 16:07:09 -06:00
21 lines
401 B
C++
Executable File
21 lines
401 B
C++
Executable File
// DummyOutStream.cpp
|
|
|
|
#include "StdAfx.h"
|
|
|
|
#include "DummyOutStream.h"
|
|
|
|
void CDummyOutStream::Init(ISequentialOutStream *outStream)
|
|
{
|
|
m_Stream = outStream;
|
|
}
|
|
|
|
STDMETHODIMP CDummyOutStream::Write(const void *data,
|
|
UInt32 size, UInt32 *processedSize)
|
|
{
|
|
if(m_Stream)
|
|
return m_Stream->Write(data, size, processedSize);
|
|
if(processedSize != NULL)
|
|
*processedSize = size;
|
|
return S_OK;
|
|
}
|