Home | History | Annotate | Download | only in 7z
      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)
     13     *processedSize = realProcessedSize;
     14   return result;
     15 }
     16 
     17 STDMETHODIMP CSequentialInStreamSizeCount2::GetSubStreamSize(UInt64 subStream, UInt64 *value)
     18 {
     19   if (!_getSubStreamSize)
     20     return E_NOTIMPL;
     21   return _getSubStreamSize->GetSubStreamSize(subStream, value);
     22 }
     23