MCPcopy Create free account
hub / github.com/MultiFuzz/MultiFuzz / reg_ptr

Function reg_ptr

icicle-cortexm/src/unicorn_api.rs:263–276  ·  view source on GitHub ↗
(
    ctx: *mut c_void,
    regid: c_int,
    value: *mut *mut c_void,
)

Source from the content-addressed store, hash-verified

261}
262
263pub 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
278pub unsafe extern "C" fn mem_read(
279 ctx: *mut c_void,

Callers

nothing calls this directly

Calls 1

get_reg_sliceMethod · 0.80

Tested by

no test coverage detected