Function setLargePageMode

Synopsis

#include <include/bit7zlibrary.hpp>

void setLargePageMode()

Description

Set the 7-zip dll to use large memory pages.

Source

Lines 52-58 in src/bit7zlibrary.cpp. Line 70 in include/bit7zlibrary.hpp.

void Bit7zLibrary::setLargePageMode() {
    auto pSetLargePageMode = reinterpret_cast< SetLargePageMode >( GetProcAddress( mLibrary, "SetLargePageMode") );
    if ( !pSetLargePageMode ) {
        throw BitException( "Cannot set large page mode", GetLastError() );
    }
    pSetLargePageMode();
}





Add Discussion as Guest

Log in