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>,
)
| 165 | /// .expect("Couldn't open `/bin/cat`"); |
| 166 | /// ``` |
| 167 | pub 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>> |
| 172 | where |
| 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 | /// |
no test coverage detected