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

Side by Side Diff: third_party/lzma/v4_65/files/CPP/7zip/Archive/7z/7zSpecStream.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 // 7zSpecStream.cpp
2
3 #include "StdAfx.h"
4
5 #include "7zSpecStream.h"
6
7 STDMETHODIMP CSequentialInStreamSizeCount2::Read(void *data, UInt32 size, UInt32 *processedSize)
8 {
9 UInt32 realProcessedSize;
10 HRESULT result = _stream->Read(data, size, &realProcessedSize);
11 _size += realProcessedSize;
12 if (processedSize != 0)
13 *processedSize = realProcessedSize;
14 return result;
15 }
16
17 STDMETHODIMP CSequentialInStreamSizeCount2::GetSubStreamSize(
18 UInt64 subStream, UInt64 *value)
19 {
20 if (_getSubStreamSize == NULL)
21 return E_NOTIMPL;
22 return _getSubStreamSize->GetSubStreamSize(subStream, value);
23 }
24
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698