```no_run use binaryninja::{metadata::Metadata, rc::Ref}; use std::collections::HashMap; let settings: Ref = HashMap::from([("analysis.linearSweep.autorun", false.into())]).into(); let headless_session = binaryninja::headless::Session::new().unwrap(); let bv = headless_session .load_with_options("/bin/cat", true, Some(settings)) .expect("Couldn't open `/bin/cat`"); ```
(
&self,
file_path: impl AsRef<Path>,
update_analysis_and_wait: bool,
options: Option<O>,
)
| 410 | /// .expect("Couldn't open `/bin/cat`"); |
| 411 | /// ``` |
| 412 | pub fn load_with_options<O: IntoJson>( |
| 413 | &self, |
| 414 | file_path: impl AsRef<Path>, |
| 415 | update_analysis_and_wait: bool, |
| 416 | options: Option<O>, |
| 417 | ) -> Option<Ref<binary_view::BinaryView>> { |
| 418 | crate::load_with_options(file_path, update_analysis_and_wait, options) |
| 419 | } |
| 420 | |
| 421 | /// Load the file with options and a progress callback, the callback will _only_ be called for BNDBs currently. |
| 422 | /// |
nothing calls this directly
no test coverage detected