• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // OutStreamWithCRC.cpp
2 
3 #include "StdAfx.h"
4 
5 #include "OutStreamWithCRC.h"
6 
Z7_COM7F_IMF(COutStreamWithCRC::Write (const void * data,UInt32 size,UInt32 * processedSize))7 Z7_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