Man
魔術文件格式
從魔術文件格式手冊中,規則的格式應該是
offset type value message
例如:
0 string MZ >0x18 leshort <0x40 MS-DOS executable >0x18 leshort >0x3f extended PC executable (e.g., MS Windows)
使用這種上下文,我試圖理解像這樣的魔法文件,它有如下規則
# DIY-Thermocam raw data 0 name diy-thermocam-parser >0 beshort x scale %d-
第一條規則是什麼意思?name 至少不是手冊頁中的有效類型。並且沒有測試組件。
您正在查看的聯機幫助頁不適用於您正在查看的軟體版本
doc
該github 站點目錄中的聯機幫助頁說:name Define a ``named'' magic instance that can be called from another use magic entry, like a subroutine call. Named instance direct magic offsets are rela- tive to the offset of the previous matched entry, but indirect offsets are relative to the beginning of the file as usual. Named magic entries always match.