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

Method load_with_options_and_progress

rust/src/headless.rs:440–453  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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
456impl Drop for Session {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected