Function GetStream

Synopsis

#include <include/bufferupdatecallback.hpp>

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

Description

No description yet.

Source

Lines 91-104 in src/bufferupdatecallback.cpp. Line 43 in include/bufferupdatecallback.hpp.

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

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

    auto* inStreamSpec = new CBufInStream;
    CMyComPtr< ISequentialInStream > inStreamLoc( inStreamSpec );
    inStreamSpec->Init( mBuffer.data(), mBuffer.size() );

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





Add Discussion as Guest

Log in