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,
)
| 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}; |
nothing calls this directly
no test coverage detected