Function GetStream

Synopsis

#include <include/streamupdatecallback.hpp>

STDMETHOD() GetStream(UInt32 index, ISequentialInStream **inStream)

Description

No description yet.

Source

Lines 94-106 in src/streamupdatecallback.cpp. Line 44 in include/streamupdatecallback.hpp.

HRESULT StreamUpdateCallback::GetStream( UInt32 index, ISequentialInStream** inStream ) {
    RINOK( Finilize() );

    if ( index < mOldArcItemsCount ) { //old item in the archive
        return S_OK;
    }

    auto* inStreamSpec = new CStdInStream( mStream );
    CMyComPtr< ISequentialInStream > inStreamLoc( inStreamSpec );

    *inStream = inStreamLoc.Detach();
    return S_OK;
}





Add Discussion as Guest

Log in