xref: /third_party/lzma/CPP/7zip/Archive/Common/OutStreamWithCRC.cpp (revision 370b324c)
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/lzma/CPP/7zip/Archive/Common/
1// OutStreamWithCRC.cpp
2
3#include "StdAfx.h"
4
5#include "OutStreamWithCRC.h"
6
7Z7_COM7F_IMF(COutStreamWithCRC::Write(const void *data, UInt32 size, UInt32 *processedSize))
8{
9  HRESULT result = S_OK;
10  if (_stream)
11    result = _stream->Write(data, size, &size);
12  if (_calculate)
13    _crc = CrcUpdate(_crc, data, size);
14  _size += size;
15  if (processedSize)
16    *processedSize = size;
17  return result;
18}
19

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