def magic2int(magic):
return struct.unpack('<STR_LIT>', magic)[<NUM_LIT:0>]<EOL>
Given a magic byte string, e.g. b'\x03\xf3\r\n', compute the
    corresponding magic integer, e.g. 62211, using the conversion
    method that does this.

    See also dictionary magic2nt2version which has precomputed these values
    for knonwn magic_int's.