I've added an extra function called get_imports_rva
To be honest I'm not sure about the correct interface so I'm leaving it like this and opening it to the discussion.
I've separated get_imports_rva according to the discussion in #171 , As saving this information was considered wasteful since it's easily calculated.
The problem with this function is that it needs to know the bitness of the PE (whether it's 32bit or 64bit) to properly calculate the RVAs.
Also, I started working with rust a few days ago, so any tips or comments are more than welcome.
Thanks!
I've added an extra function called
get_imports_rva
To be honest I'm not sure about the correct interface so I'm leaving it like this and opening it to the discussion.I've separated
get_imports_rva
according to the discussion in #171 , As saving this information was consideredwasteful
since it's easily calculated. The problem with this function is that it needs to know the bitness of the PE (whether it's 32bit or 64bit) to properly calculate the RVAs.Also, I started working with rust a few days ago, so any tips or comments are more than welcome. Thanks!