Mercurial > vba-linux
diff src/win32/7zip/7z/CPP/7zip/Archive/7z/7zSpecStream.cpp @ 1:f9f4f1b99eed
importing src directory
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Mar 2012 10:31:27 -0600 |
parents | |
children |
line wrap: on
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/win32/7zip/7z/CPP/7zip/Archive/7z/7zSpecStream.cpp Sat Mar 03 10:31:27 2012 -0600 1.3 @@ -0,0 +1,24 @@ 1.4 +// 7zSpecStream.cpp 1.5 + 1.6 +#include "StdAfx.h" 1.7 + 1.8 +#include "7zSpecStream.h" 1.9 + 1.10 +STDMETHODIMP CSequentialInStreamSizeCount2::Read(void *data, UInt32 size, UInt32 *processedSize) 1.11 +{ 1.12 + UInt32 realProcessedSize; 1.13 + HRESULT result = _stream->Read(data, size, &realProcessedSize); 1.14 + _size += realProcessedSize; 1.15 + if (processedSize != 0) 1.16 + *processedSize = realProcessedSize; 1.17 + return result; 1.18 +} 1.19 + 1.20 +STDMETHODIMP CSequentialInStreamSizeCount2::GetSubStreamSize( 1.21 + UInt64 subStream, UInt64 *value) 1.22 +{ 1.23 + if (_getSubStreamSize == NULL) 1.24 + return E_NOTIMPL; 1.25 + return _getSubStreamSize->GetSubStreamSize(subStream, value); 1.26 +} 1.27 +