Function
get_arg
(ctx: &CONTEXT, index: i32)
Source from the content-addressed store, hash-verified
| 114 | } |
| 115 | |
| 116 | fn get_arg(ctx: &CONTEXT, index: i32) -> usize { |
| 117 | match index { |
| 118 | 0 => ctx.Rcx as usize, |
| 119 | 1 => ctx.Rdx as usize, |
| 120 | 2 => ctx.R8 as usize, |
| 121 | 3 => ctx.R9 as usize, |
| 122 | _ => unsafe { *((ctx.Rsp as *const u64).offset((index + 1) as isize) as *const usize) } |
| 123 | } |
| 124 | } |
| 125 | |
| 126 | fn get_return_address(ctx: &CONTEXT) -> usize { |
| 127 | unsafe { *((ctx.Rsp as *const u64) as *const usize) } |
Tested by
no test coverage detected