diff options
| author | Fabian Freyer <fabian.freyer@physik.tu-berlin.de> | 2022-01-28 01:36:26 +0100 |
|---|---|---|
| committer | KyleMiles <krm504@nyu.edu> | 2022-02-14 18:45:11 -0500 |
| commit | 6cd49edb317112acc73f7caeb285f4134a472d72 (patch) | |
| tree | 3fc1af20b46dcb33c1ba5490193a0226e112e839 /rust/src/function.rs | |
| parent | 181ad567199e5685578ecf7ad400257098c2e175 (diff) | |
rust: add linearview and related APIs
This should include everything required to retrieve linear disassembly
for a function.
* add `highest_address` method to `Function`
* add `DisassemblySettings`
* add text getter for `InstructionTextToken`
* add `LinearViewObject`, `LinearViewCursor`
* add decompilation example
Diffstat (limited to 'rust/src/function.rs')
| -rw-r--r-- | rust/src/function.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rust/src/function.rs b/rust/src/function.rs index 865a22db..4ce90457 100644 --- a/rust/src/function.rs +++ b/rust/src/function.rs @@ -155,6 +155,10 @@ impl Function { unsafe { BNGetFunctionStart(self.handle) } } + pub fn highest_address(&self) -> u64 { + unsafe { BNGetFunctionHighestAddress(self.handle) } + } + pub fn comment(&self) -> BnString { unsafe { BnString::from_raw(BNGetFunctionComment(self.handle)) } } |
