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

DummyOutStream.h « Common « Archive « 7zip - github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2e66cd3d3ccdcb98f0120eba2788c132fbd7ced5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// DummyOutStream.h

#ifndef __DUMMYOUTSTREAM_H
#define __DUMMYOUTSTREAM_H

#include "../../IStream.h"
#include "Common/MyCom.h"

class CDummyOutStream: 
  public ISequentialOutStream,
  public CMyUnknownImp
{
public:
  MY_UNKNOWN_IMP

  STDMETHOD(Write)(const void *data, UInt32 size, UInt32 *processedSize);
  STDMETHOD(WritePart)(const void *data, UInt32 size, UInt32 *processedSize);
private:
  CMyComPtr<ISequentialOutStream> m_Stream;
public:
  void Init(ISequentialOutStream *outStream);
};

#endif