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

Function load_with_options

rust/src/lib.rs:167–181  ·  view source on GitHub ↗

The main way to open and load files (with options) into Binary Ninja. Make sure you've properly initialized the core before calling this function. See [`crate::headless::init()`] Strict JSON doesn't support single quotes for strings, so you'll need to either use a raw strings ( f#"{"setting": "value"}"# ) or escape double quotes ( "{\"setting\": \"value\"}"</c

(
    file_path: impl AsRef<Path>,
    update_analysis_and_wait: bool,
    options: Option<O>,
)

Source from the content-addressed store, hash-verified

165/// .expect("Couldn't open `/bin/cat`");
166/// ```
167pub fn load_with_options<O>(
168 file_path: impl AsRef<Path>,
169 update_analysis_and_wait: bool,
170 options: Option<O>,
171) -> Option<Ref<BinaryView>>
172where
173 O: IntoJson,
174{
175 load_with_options_and_progress(
176 file_path,
177 update_analysis_and_wait,
178 options,
179 NoProgressCallback,
180 )
181}
182
183/// Equivalent to [`load_with_options`] but with a progress callback.
184///

Callers 4

load_with_optionsMethod · 0.85
load_sibling_debug_fileFunction · 0.85
data_from_fileFunction · 0.85

Calls 1

Tested by

no test coverage detected