Function detectedFormat

Synopsis

#include <include/bitinputarchive.hpp>

const BitInFormat & detectedFormat() const

Description

Return
the detected format of the file.

Source

Lines 196-204 in src/bitinputarchive.cpp. Line 37 in include/bitinputarchive.hpp.

const BitInFormat& BitInputArchive::detectedFormat() const {
#ifdef BIT7Z_AUTO_FORMAT
    // Defensive programming: for how the archive format is detected,
    // a correct BitInputArchive instance should have a non null mDetectedFormat!
    return mDetectedFormat == nullptr ? BitFormat::Auto : *mDetectedFormat;
#else
    return *mDetectedFormat;
#endif
}





Add Discussion as Guest

Log in