From 21a8896ae9f187c4480fe1a541dce599483817a6 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Wed, 23 Apr 2025 14:22:29 -0400 Subject: Add Function::Analyze API to perform on-demand function analysis. --- rust/src/function.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'rust/src/function.rs') 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 -- cgit v1.3.1