Loop to swap data around in Data Processor? #1608
Unanswered
clemarescx
asked this question in
Get Help
Replies: 1 comment 1 reply
-
I am trying to do something similar to this, and I see that a Loop node has been added since then by @WerWolv, but cannot figure out how to use it in any meaningful way. 🤔 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
thanks a lot for ImHex! Not sure if I'm having skill issues with the Data Processor - I'm new to node-based scripting - or if it's possible at all, but here goes:
I need to preprocess binary data as follow:
Example:
should become
The equivalent in a pseudo C# code would be:
I see that there are node functions that I could use like Slice and Reverse, but I don't know how to look back to read from the Read buffer or a data buffer in chunks with an incremented offset... Or how to loop at all in general.
Any help would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions