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

DummyOutStream.cpp « Common « Archive « 7zip « CPP - github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b1d49913496829c2a6ed0d210c284ad11c066899 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// 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;
}