Function guid

Synopsis

#include <include/bitformat.hpp>

const GUID guid() const

Description

Return
the GUID that identifies the file format in the 7z SDK.

Source

Lines 537-551 in src/bitformat.cpp. Line 69 in include/bitformat.hpp.

const GUID BitInFormat::guid() const {
#if _MSC_VER <= 1700
    GUID ret;
    ret.Data1 = 0x23170F69;
    ret.Data2 = 0x40C1;
    ret.Data3 = 0x278A;

    const unsigned char data4 [] = { 0x10, 0x00, 0x00, 0x01, 0x10, mValue, 0x00, 0x00 };
    std::copy( data4, data4 + 8, ret.Data4 );

    return ret;
#else
    return { 0x23170F69, 0x40C1, 0x278A, { 0x10, 0x00, 0x00, 0x01, 0x10, mValue, 0x00, 0x00 } };
#endif
}





Add Discussion as Guest

Log in