diff options
| author | Brian Potchik <brian@vector35.com> | 2025-04-23 14:22:29 -0400 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2025-04-23 14:22:29 -0400 |
| commit | 21a8896ae9f187c4480fe1a541dce599483817a6 (patch) | |
| tree | 795284c41f1ac5fe7e428f862f8ea1d026880d9b /rust/src/function.rs | |
| parent | 67ae186d19ef585d17ee5085340e66b5b35011fd (diff) | |
Add Function::Analyze API to perform on-demand function analysis.
Diffstat (limited to 'rust/src/function.rs')
| -rw-r--r-- | rust/src/function.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rust/src/function.rs b/rust/src/function.rs index 1f22512c..d8b5c199 100644 --- a/rust/src/function.rs +++ b/rust/src/function.rs @@ -2166,6 +2166,11 @@ impl Function { unsafe { BNUnsplitVariable(self.handle, &raw_var) } } + /// Causes this function to be analyzed if it's out of date. This function does not wait for the analysis to finish. + pub fn analyze(&self) { + unsafe { BNAnalyzeFunction(self.handle) } + } + /// Causes this function to be reanalyzed. This function does not wait for the analysis to finish. /// /// * `update_type` - Desired update type |
