Function extractToBufferMap

Synopsis

#include <include/bitarchiveopener.hpp>

void extractToBufferMap(const BitInputArchive &in_archive, map< wstring, vector< byte_t > > &out_map) const

Description

No description yet.

Source

Lines 94-107 in src/bitarchiveopener.cpp. Line 72 in include/bitarchiveopener.hpp.

void BitArchiveOpener::extractToBufferMap( const BitInputArchive& in_archive,
                                           map< wstring, vector< byte_t > >& out_map ) const {
    uint32_t number_items = in_archive.itemsCount();
    vector< uint32_t > files_indices;
    for ( uint32_t i = 0; i < number_items; ++i ) {
        if ( !in_archive.isItemFolder( i ) ) { //Consider only files, not folders
            files_indices.push_back( i );
        }
    }

    CMyComPtr< ExtractCallback > extract_callback = new BufferExtractCallback( *this, in_archive, out_map );
    in_archive.extract( files_indices, extract_callback );

}





Add Discussion as Guest

Log in