binsider icon indicating copy to clipboard operation
binsider copied to clipboard

Add a (switch|cli-arg) to enable Human Readable Output for `FileSize` `MemSize` `Size`

Open Azathothas opened this issue 1 year ago • 2 comments

Hello, It would be immensely helpful if there was a switch or a cli option (-h | --human) This would enable human readable output (KiB,MiB,GiB...) for the hex values of FileSize MemSize Size Perhaps in the future, this could also be extended to display values other than size in Human readable format.

image image

The intro/summary page already includes a Human readable format: image

Note: I don't know much about elf/binary analysis, so I apologize if this request is dumb. Essentially, I wanted to use binsider to give me a du|ncdu kind of output about the size of each section on an elf file.

Azathothas avatar Sep 20 '24 08:09 Azathothas

Hello 👋🏼

Really good suggestion! I currently use the bytesize crate to show human readable output for the general tab. It should be fairly straightforward to use it for the other fields as well.

Would you be interested in contributing this feature? I would like to have it available in the upcoming release :)

orhun avatar Sep 20 '24 09:09 orhun

Unfortunately, I don't know any rust… I will wait patiently until that feature is implemented, take your time, there's no rush. :)

Azathothas avatar Sep 20 '24 09:09 Azathothas