MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / load_with_options

Method load_with_options

rust/src/headless.rs:412–419  ·  view source on GitHub ↗

```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>,
    )

Source from the content-addressed store, hash-verified

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 ///

Callers

nothing calls this directly

Calls 1

load_with_optionsFunction · 0.85

Tested by

no test coverage detected