(
ctx: *mut c_void,
regid: c_int,
value: *mut *mut c_void,
)
| 261 | } |
| 262 | |
| 263 | pub unsafe extern "C" fn reg_ptr( |
| 264 | ctx: *mut c_void, |
| 265 | regid: c_int, |
| 266 | value: *mut *mut c_void, |
| 267 | ) -> uc_err { |
| 268 | debug!("icicle_unicorn_api::reg_ptr({regid})"); |
| 269 | let ctx = &mut *ctx.cast::<Context>(); |
| 270 | let data = match ctx.get_reg_slice(regid) { |
| 271 | Some(slice) => slice, |
| 272 | None => return UC_ERR_ARG, |
| 273 | }; |
| 274 | *value = data.as_mut_ptr().cast(); |
| 275 | UC_ERR_OK |
| 276 | } |
| 277 | |
| 278 | pub unsafe extern "C" fn mem_read( |
| 279 | ctx: *mut c_void, |
nothing calls this directly
no test coverage detected