frida / frida-gum

Cross-platform instrumentation and introspection library written in C
https://frida.re
Other
753 stars 245 forks source link

[Feature Request] Be able to read from NativePointer specifing endianess. #732

Open muniategui opened 1 year ago

muniategui commented 1 year ago

Right now the functions like readS16, readU16, readInt read the pointer direction in little endian. In general this is no problem as default behavior however having an optional parameter in which specifying "be" as parameter to the function would read the pointer content in big endianess being able to read in both endianess.

This would not cause problem with existing scripts since the default parameter would be "le" if not specified and would give both endianess reading to the functions without adding new methods.