misc/libphysfs/lzma/CPP/7zip/Archive/Common/DummyOutStream.cpp
branchui-scaling
changeset 15283 c4fd2813b127
parent 13390 0135e64c6c66
parent 15279 7ab5cf405686
child 15663 d92eeb468dad
equal deleted inserted replaced
13390:0135e64c6c66 15283:c4fd2813b127
     1 // DummyOutStream.cpp
       
     2 
       
     3 #include "StdAfx.h"
       
     4 
       
     5 #include "DummyOutStream.h"
       
     6 
       
     7 STDMETHODIMP CDummyOutStream::Write(const void *data,  UInt32 size, UInt32 *processedSize)
       
     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   _size += realProcessedSize;
       
    19   if(processedSize != NULL)
       
    20     *processedSize = realProcessedSize;
       
    21   return result;
       
    22 }