Replies: 9 comments 34 replies
-
do you mean decimal when you say byte? What is binary offset? for number systems binary is 0's and 1's and I don't think thats what the data processor expects. goto lets you type decimal values as numbers or hexadecimal numbers by writing 0x prefix. For converting decimal to hex or vice-versa there is the calculator in the tools that I think should do that but I havent checked. |
Beta Was this translation helpful? Give feedback.
-
Decimal stands for the case when the base of the number system used in the number representation is 10 (deca in Latin) Hexadecimal is for base 16, binary for base 2, octal for base 8, etc.... So when you say you want to display the offset as an integer you really mean as a decimal number because regardless of their representation the numbers 0x10, 16, 0b10000 and O20 are all integers representing the same number (the decimal 16) If ImHex was able to display the offsets in bases other than 16, which is already possible for the values of the input file, then you wouldn't need any conversions because when decimal notation is chosen for the offset then all values displayed for the offset (as in the values displayed in the selection information display) would be displayed in decimal as well which is less confusing than showing the offset in hex and displaying the selection offset in decimal and also is the way other hex editors work. |
Beta Was this translation helpful? Give feedback.
-
The easiest way to solve this is probably using a custom data inspector row. You can read up on that here: https://docs.werwolv.net/imhex/views/data-inspector#adding-new-rows Something like |
Beta Was this translation helpful? Give feedback.
-
Here is another way. Select the region up to the offset and read the value where shown |
Beta Was this translation helpful? Give feedback.
-
Just like WerWolv suggested I was able to add one line to the data inspector to print the offset of the selection in decimal and it took one minute tops. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I created file |
Beta Was this translation helpful? Give feedback.
-
Could you share code how exactly you determine each data type? |
Beta Was this translation helpful? Give feedback.
-
Maybe can do script with selection range to, example select 5 hex byte in addrss, 185-190 |
Beta Was this translation helpful? Give feedback.
-
Every hex editor i used in the past offers to use byte offset when Ctrl+G (go to) and when copy address you can quickly convert HEX offset to bytes but in imHex it only allows to copy address as hex and use hex offset for Ctrl+G its so inconvenient. Why not make selection to allow user use byte or hex.
Funny thing is in data processor input is expecting binary offset and you only offer to copy HEX offset.
Beta Was this translation helpful? Give feedback.
All reactions