misc/libphysfs/lzma/CPP/7zip/Archive/7z/7zSpecStream.cpp
branchui-scaling
changeset 15283 c4fd2813b127
parent 13390 0135e64c6c66
parent 15279 7ab5cf405686
child 15663 d92eeb468dad
equal deleted inserted replaced
13390:0135e64c6c66 15283:c4fd2813b127
     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