Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(585)

Side by Side Diff: third_party/lzma/v4_65/files/CPP/7zip/Archive/Common/OutStreamWithCRC.cpp

Issue 624713003: Keep only base/extractor.[cc|h]. (Closed) Base URL: https://chromium.googlesource.com/external/omaha.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // OutStreamWithCRC.cpp
2
3 #include "StdAfx.h"
4
5 #include "OutStreamWithCRC.h"
6
7 STDMETHODIMP COutStreamWithCRC::Write(const void *data, UInt32 size, UInt32 *pro cessedSize)
8 {
9 UInt32 realProcessedSize;
10 HRESULT result;
11 if(!_stream)
12 {
13 realProcessedSize = size;
14 result = S_OK;
15 }
16 else
17 result = _stream->Write(data, size, &realProcessedSize);
18 if (_calculate)
19 _crc = CrcUpdate(_crc, data, realProcessedSize);
20 _size += realProcessedSize;
21 if(processedSize != NULL)
22 *processedSize = realProcessedSize;
23 return result;
24 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698