Function setRatioCallback

Synopsis

#include <include/bitarchivehandler.hpp>

void setRatioCallback(const RatioCallback &callback)

Description

Sets the callback to be called when the input processed size and current output size of the ongoing operation are known.

Note
The ratio percentage of a compression operation can be obtained by calculating static_cast<int>( ( 100.0 * output_size ) / input_size ).
Parameters

callback - the ratio callback to be used.

Mentioned in

Source

Lines 79-81 in src/bitarchivehandler.cpp. Line 165 in include/bitarchivehandler.hpp.

void BitArchiveHandler::setRatioCallback( const RatioCallback& callback ) {
    mRatioCallback = callback;
}





Add Discussion as Guest

Log in