http://www.jemarch.net/poke might be interesting in that case.
Re:Fq: Jq for Binary Formats
by wakeupcall on Saturday June 03, 2023 @08:55AM
(#36176293)
I second poke. It's an amazing tool for debugging in general.
It's relatively rare to look into standardized binary formats (you'll likely look directly into a library at that point), unless you're writing a writer/parser/decoder yourself and need to double-check the output.
When developing with general binary data in mind, poke is much more useful.
Re:Fq: Jq for Binary Formats
by notpushkin on Saturday June 03, 2023 @06:45AM
(#36175446)
Kaitai Struct might be a good choice for that: https://kaitai.io/
Re:Fq: Jq for Binary Formats
by theozaurus on Saturday June 03, 2023 @08:24AM
(#36176062)
I've found Kaitai struct to be an absolute joy to use on things like EEPROM dumps from car computers.
Has anyone found anything incredible for arbitrary UTF-8 data?
Re:Fq: Jq for Binary Formats
by dotancohen on Sunday June 04, 2023 @05:01AM
(#36184145)
Honestly, VIM.
Thanks for the link, that’s really cool!
Re:Fq: Jq for Binary Formats
by Hackbraten on Saturday June 03, 2023 @04:08PM
(#36180057)
I suppose OTB means “off the bat?” Non-native speaker here, and my web search turned up nothing.
I assume in this case it’s “Out (of) The Box”
Hi, i'm working on runtime kaitai support and have made good process but it's quite a big task. Keep an eye on https://github.com/wader/fq/issues/627 your interested.
It would be good if some form of externally plugable binary format specification is doable in the future. As far as I can see, if the binary format is not supported OTB, you can't use this tool.