Function extract

Synopsis

#include <include/bitinputarchive.hpp>

void extract(const vector< uint32_t > &indices, ExtractCallback *extract_callback) const

Description

No description yet.

Source

Lines 169-177 in src/bitinputarchive.cpp. Line 85 in include/bitinputarchive.hpp.

void BitInputArchive::extract( const vector< uint32_t >& indices, ExtractCallback* extract_callback ) const {
    const uint32_t* item_indices = indices.empty() ? nullptr : indices.data();
    uint32_t num_items = indices.empty() ? static_cast< uint32_t >( -1 ) : static_cast< uint32_t >( indices.size() );

    HRESULT res = mInArchive->Extract( item_indices, num_items, NExtract::NAskMode::kExtract, extract_callback );
    if ( res != S_OK ) {
        throw BitException( extract_callback->getErrorMessage(), res );
    }
}





Add Discussion as Guest

Log in