diff options
| author | Xusheng <xusheng@vector35.com> | 2024-01-05 15:47:54 +0800 |
|---|---|---|
| committer | Xusheng <xusheng@vector35.com> | 2024-01-05 16:42:10 +0800 |
| commit | ab12527cffa04b04ac282d64b2eb30391808757a (patch) | |
| tree | 67c1574fa9ca6a8caf2501f5bdf7db6cfa59ae79 /binaryninjaapi.h | |
| parent | 9d16a5c960bc941846a65e504b1065eb68dcb85a (diff) | |
Add a new API to get the original image base of the binary view. Fix https://github.com/Vector35/binaryninja-api/issues/4861
Diffstat (limited to 'binaryninjaapi.h')
| -rw-r--r-- | binaryninjaapi.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 9200b3c1..2f255cb9 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -4274,13 +4274,27 @@ namespace BinaryNinja { */ uint64_t GetNextValidOffset(uint64_t offset) const; + /*! GetOriginalBase queries for the original image base in the BinaryView, unaffected by any rebasing operations + + \return the original image base of the BinaryView + */ + uint64_t GetOriginalBase() const; + + /*! SetOriginalBase sets the original image base in the BinaryView, unaffected by any rebasing operations. + * This is only intended to be used by Binary View implementations to provide this value. Regular users should + * NOT change this value. + + \param base the original image base of the binary view + */ + void SetOriginalBase(uint64_t base); + /*! GetStart queries for the first valid virtual address in the BinaryView \return the start of the BinaryView */ uint64_t GetStart() const; - /*! GetEnd queries for the first valid virtual address in the BinaryView + /*! GetEnd queries for the end virtual address of the BinaryView \return the end of the BinaryView */ |
