Method 7: copy (memmove)
(ctx: &mut VmCtx, src: &[u8], offset:usize)
| 100 | |
| 101 | // Method 7: copy (memmove) |
| 102 | fn write_method_7(ctx: &mut VmCtx, src: &[u8], offset:usize){ |
| 103 | unsafe { |
| 104 | copy( |
| 105 | src.as_ptr(), |
| 106 | self.mem.as_mut_ptr().offset(offset as isize), |
| 107 | src.len(), |
| 108 | ) |
| 109 | }; |
| 110 | } |
| 111 | |
| 112 | // Compute lag on using Instant::now |
| 113 | fn trial_0(){ |