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

Method load_with_progress

rust/src/headless.rs:392–398  ·  view source on GitHub ↗

Load the file with a progress callback, the callback will _only_ be called for BNDBs currently. ```no_run let headless_session = binaryninja::headless::Session::new().unwrap(); let print_progress = |progress, total| { println!("{}/{}", progress, total); true }; let bv = headless_session .load_with_progress("cat.bndb", print_progress) .expect("Couldn't open `cat.bndb`"); ```

(
        &self,
        file_path: impl AsRef<Path>,
        progress: impl ProgressCallback,
    )

Source from the content-addressed store, hash-verified

390 /// .expect("Couldn't open `cat.bndb`");
391 /// ```
392 pub fn load_with_progress(
393 &self,
394 file_path: impl AsRef<Path>,
395 progress: impl ProgressCallback,
396 ) -> Option<Ref<binary_view::BinaryView>> {
397 crate::load_with_progress(file_path, progress)
398 }
399
400 /// ```no_run
401 /// use binaryninja::{metadata::Metadata, rc::Ref};

Callers

nothing calls this directly

Calls 1

load_with_progressFunction · 0.85

Tested by

no test coverage detected