Load the file with options and a progress callback, the callback will _only_ be called for BNDBs currently. ```no_run use binaryninja::{metadata::Metadata, rc::Ref}; use std::collections::HashMap; let print_progress = |progress, total| { println!("{}/{}", progress, total); true }; let settings: Ref = HashMap::from([("analysis.linearSweep.autorun", false.into())]).into(); let headless_
(
&self,
file_path: impl AsRef<Path>,
update_analysis_and_wait: bool,
options: Option<O>,
progress: impl ProgressCallback,
)
| 438 | /// .expect("Couldn't open `cat.bndb`"); |
| 439 | /// ``` |
| 440 | pub fn load_with_options_and_progress<O: IntoJson>( |
| 441 | &self, |
| 442 | file_path: impl AsRef<Path>, |
| 443 | update_analysis_and_wait: bool, |
| 444 | options: Option<O>, |
| 445 | progress: impl ProgressCallback, |
| 446 | ) -> Option<Ref<binary_view::BinaryView>> { |
| 447 | crate::load_with_options_and_progress( |
| 448 | file_path, |
| 449 | update_analysis_and_wait, |
| 450 | options, |
| 451 | progress, |
| 452 | ) |
| 453 | } |
| 454 | } |
| 455 | |
| 456 | impl Drop for Session { |
nothing calls this directly
no test coverage detected