(ctx: *mut c_void, value: u64)
| 343 | } |
| 344 | |
| 345 | pub unsafe extern "C" fn set_timer_countdown(ctx: *mut c_void, value: u64) -> uc_err { |
| 346 | let ctx = &mut *ctx.cast::<Context>(); |
| 347 | let timer = ctx.timer.as_ref().unwrap_unchecked(); |
| 348 | timer.set_countdown(&mut (*ctx.vm).cpu, value); |
| 349 | UC_ERR_OK |
| 350 | } |
| 351 | |
| 352 | pub unsafe extern "C" fn get_timer_countdown(ctx: *mut c_void, value: *mut u64) -> uc_err { |
| 353 | let ctx = &mut *ctx.cast::<Context>(); |
no outgoing calls
no test coverage detected