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

Function reg_write_batch

icicle-cortexm/src/unicorn_api.rs:243–261  ·  view source on GitHub ↗
(
    ctx: *mut c_void,
    regs: *mut c_int,
    vals: *const *mut c_void,
    count: c_int,
)

Source from the content-addressed store, hash-verified

241}
242
243pub unsafe extern "C" fn reg_write_batch(
244 ctx: *mut c_void,
245 regs: *mut c_int,
246 vals: *const *mut c_void,
247 count: c_int,
248) -> uc_err {
249 let regs = std::slice::from_raw_parts(regs, count as usize);
250 let vals = std::slice::from_raw_parts(vals, count as usize);
251 debug!("icicle_unicorn_api::reg_write_batch({regs:?})");
252
253 for (regid, val) in regs.iter().zip(vals) {
254 let result = reg_write(ctx, *regid, *val);
255 if result != UC_ERR_OK {
256 return result;
257 }
258 }
259
260 UC_ERR_OK
261}
262
263pub unsafe extern "C" fn reg_ptr(
264 ctx: *mut c_void,

Callers

nothing calls this directly

Calls 1

reg_writeFunction · 0.85

Tested by

no test coverage detected