1 // OutStreamWithCRC.cpp
5 #include "OutStreamWithCRC.h"
7 STDMETHODIMP COutStreamWithCRC::Write(const void *data, UInt32 size, UInt32 *processedSize)
9 UInt32 realProcessedSize;
13 realProcessedSize = size;
17 result = _stream->Write(data, size, &realProcessedSize);
19 _crc = CrcUpdate(_crc, data, realProcessedSize);
20 _size += realProcessedSize;
21 if(processedSize != NULL)
22 *processedSize = realProcessedSize;