<div dir="ltr"><div>Here (below the line) are magic numbers for OpenFst binary formats. The formatting seems to have been lost when pasting into mail, unfortunately.</div><div><br></div><div>Empirically pstring/l works with Pascal-style strings that have a 4-byte LE length, even though man magic(5) says that /l should indicate 2 bytes; pstring/L does not work. I wonder if something is amiss there. Here's a test case:</div><div><br></div><div>$ od -t x1 const8.fst <br><font face="monospace">0000000 d6 fd b2 7e 06 00 00 00 63 6f 6e 73 74 38 08 00<br>0000020 00 00 73 74 61 6e 64 61 72 64 02 00 00 00 00 00<br>0000040 00 00 01 00 95 5a 6a 95 00 00 00 00 00 00 00 00<br>0000060 00 00 02 00 00 00 00 00 00 00 01 00 00 00 00 00<br>0000100 00 00 00 00 80 7f 00 01 00 00 00 00 00 00 01 00<br>0000120 00 00 01 00 00 00 01 00 00 00 00 00 00 00 01 00<br>0000140 00 00<br></font></div><div><br></div><div>magic follows:</div><div>-------------------</div><div><br></div>0     long    2125659606      OpenFst binary FST data<br>>&0     pstring/l       x       \b, fst type: %s<br>>>&0        pstring/l       x       \b, arc type: %s<br>>>>&0    long            x       \b, version: %d<br>>>>>&20        quad            x       \b, num states: %lld<br>>>>>>&0        quad            >0   \b, num arcs: %lld<br><br>0 long       5656924     OpenFst binary FAR data, far type: stlist<br>>4        long            x       \b, version: %d<br><br>0    long    2125656924      OpenFst binary FAR data, far type: sttable<br>>4       long            x       \b, version: %d<br></div>