logo
pub fn open_view_with_options<F: AsRef<Path>>(
    filename: F,
    update_analysis_and_wait: bool,
    options: Option<HashMap<&str, &str>>
) -> Result<Ref<BinaryView>, String>
Expand description

This is incomplete, but should work in most cases:

let settings = [("analysis.linearSweep.autorun", "false")]
    .iter()
    .cloned()
    .collect();

let bv = binaryninja::open_view_with_options("/bin/cat", true, Some(settings))
    .expect("Couldn't open `/bin/cat`");