Is it possible to change strings (content and size) in Lua bytecode so that it will still be correct?

后端 未结 3 1054
耶瑟儿~
耶瑟儿~ 2021-01-14 23:59

Is it possible to change strings (content and size) in Lua bytecode so that it will still be correct? It\'s about translating strings in Lua bytecode. Of course, not every l

3条回答
  •  春和景丽
    2021-01-15 00:36

    Yes, it is if you know what you're doing. Strings are prefixed by their size stored as an int. The size and endianness of that int is platform-dependent. But why do you have to edit bytecode? Have you lost the sources?

提交回复
热议问题