data: native size iteration
Closed this issue · 2 comments
ronyrus commented
When traversing the pointer table, for example, it would make sense to traverse it with a native pointer size for the platform. This would allow to write code that would work for both 32 and 64 bit ARM platforms without modification.
tmr232 commented
I added the relevant functions. Please tell me if this works for you.
ronyrus commented
looks good.
In my specific case, I ended up implementing wrappers as well.
Mostly because I needed the 'find_val()' and 'find_not_val()' functionality for data iteration forward and backward.
It might be a good idea to add reverse iteration and xxx_until_not().
What do you think?
Should I open a new issue?