MCPcopy Create free account
hub / github.com/PLSysSec/wave / write_method_7

Function write_method_7

src/tests/memwrite_experiment.rs:102–110  ·  view source on GitHub ↗

Method 7: copy (memmove)

(ctx: &mut VmCtx, src: &[u8], offset:usize)

Source from the content-addressed store, hash-verified

100
101// Method 7: copy (memmove)
102fn 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
113fn trial_0(){

Callers

nothing calls this directly

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected