solemnwarning / rehex

Reverse Engineers' Hex Editor
https://rehex.solemnwarning.net/
GNU General Public License v2.0
2.3k stars 113 forks source link

Allow defining custom numeric types #215

Closed knoid closed 5 months ago

knoid commented 1 year ago

I have a file containing some integers represented as 3 bytes that is basically a u32le where the last byte is always 0. Is there a way to add this or should I create a custom build with that support?

Thanks!

solemnwarning commented 12 months ago

Hi

There's no method for adding custom types without recompiling at this time. The existing numeric data types are implemented in BasicDataTypes.cpp and BasicDataTypes.hpp.

solemnwarning commented 5 months ago

Now merged to master, as shown here: https://github.com/solemnwarning/rehex/issues/155#issuecomment-2038488513