abbaye / WpfHexEditorControl

Wpf Hexeditor is a powerful and fully customisable user control for editing file or stream as hexadecimal, decimal and binary. Can be used in Wpf or WinForm application
https://www.nuget.org/packages/WPFHexaEditor/
Apache License 2.0
815 stars 136 forks source link

[Feature Request] Use template files to define data #111

Open 00cpxxx opened 2 years ago

00cpxxx commented 2 years ago

Thanks for the great component! I started using it recently and it is nice.

I wonder if there is a way to add support to map the data using C like structs or something similar. I understand it is possible to define tables to map each byte to something else, what I propose is actually see the data parsed into a struct of bytes. This is something done in 010 editor where you can set templates and it will parse the data for you. Template list at: https://www.sweetscape.com/010editor/repository/templates/

010 goes far beyond by allowing code to be added to the parser, I'm thinking much smaller about a only a struct that can map the current file.

This could be extended to also work in comparison mode to make the list with field names instead of offsets for the difference.

If there is any interest on working this let me know, otherwise feel free to close the request as out of scope.

abbaye commented 2 years ago

Thank for good word!😁

Nice idea. Can you update your link. It's doesn't work 😕

abbaye commented 2 years ago

If you like please put a ⭐

00cpxxx commented 2 years ago

Link updated and starred!