xref: /third_party/lzma/CPP/7zip/Archive/Common/DummyOutStream.cpp (revision 370b324c)
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/lzma/CPP/7zip/Archive/Common/
1// DummyOutStream.cpp
2
3#include "StdAfx.h"
4
5#include "DummyOutStream.h"
6
7Z7_COM7F_IMF(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

Indexes created Thu Nov 07 10:32:03 CST 2024