关于 swf 中的 actionscript 标签的按位数学
bitwise math regarding actionscript tags in swf
我正在尝试智能地解析 actionscript 标签,我检查了 disassemble/decompile swf 文件的几个开源程序的源代码。
在 pg29 上检查 the doc 它指出
"Note: The TagCodeAndLength field is a two-byte word, not a bit field of 10 bits followed by a bit field of 6 bits.
The little-endian byte ordering of a SWF file makes these two layouts different."
签入010编辑器,第一个标签是
0x44 0x11
以某种方式转换为 0x45(然后是长度)。然而,根据文档(上面引用),它看起来没有任何意义:
0100 0100 0001 0001
这甚至看起来都不是
0110 1001
有人可以解释一下吗?
LE order表示一个two-byte值0100 0100
0001 0001
应该读作0001 0001
0100 0100
(字节顺序颠倒),这是一个短header 标签 1000101
(0x45,dec 69),长度为 0x100(dec 4)。
我正在尝试智能地解析 actionscript 标签,我检查了 disassemble/decompile swf 文件的几个开源程序的源代码。
在 pg29 上检查 the doc 它指出
"Note: The TagCodeAndLength field is a two-byte word, not a bit field of 10 bits followed by a bit field of 6 bits. The little-endian byte ordering of a SWF file makes these two layouts different."
签入010编辑器,第一个标签是
0x44 0x11
以某种方式转换为 0x45(然后是长度)。然而,根据文档(上面引用),它看起来没有任何意义:
0100 0100 0001 0001
这甚至看起来都不是
0110 1001
有人可以解释一下吗?
LE order表示一个two-byte值0100 0100
0001 0001
应该读作0001 0001
0100 0100
(字节顺序颠倒),这是一个短header 标签 1000101
(0x45,dec 69),长度为 0x100(dec 4)。