Function itemsCount

Synopsis

#include <include/bitinputarchive.hpp>

uint32_t itemsCount() const

Description

Return
the number of items contained in the archive.

Source

Lines 146-153 in src/bitinputarchive.cpp. Line 62 in include/bitinputarchive.hpp.

uint32_t BitInputArchive::itemsCount() const {
    uint32_t items_count;
    HRESULT res = mInArchive->GetNumberOfItems( &items_count );
    if ( res != S_OK ) {
        throw BitException( "Could not retrieve the number of items in the archive", res );
    }
    return items_count;
}





Add Discussion as Guest

Log in