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

Method get_reg_slice

icicle-cortexm/src/unicorn_api.rs:52–59  ·  view source on GitHub ↗
(&mut self, regid: i32)

Source from the content-addressed store, hash-verified

50 }
51
52 fn get_reg_slice(&mut self, regid: i32) -> Option<&mut [u8]> {
53 let var = *self.uc_vars.get(regid as usize).unwrap_or(&pcode::VarNode::NONE);
54 if var.is_invalid() {
55 return None;
56 }
57 let vm = unsafe { &mut *self.vm };
58 vm.cpu.regs.get_mut(var)
59 }
60
61 // Super unsafe: creates a self referencing struct.
62 unsafe fn build_vtable(&mut self) {

Callers 3

reg_readFunction · 0.80
reg_writeFunction · 0.80
reg_ptrFunction · 0.80

Calls 2

get_mutMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected