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

Function write_method_5

src/tests/memwrite_experiment.rs:85–88  ·  view source on GitHub ↗

Method 5: vector::splice

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

Source from the content-addressed store, hash-verified

83
84// Method 5: vector::splice
85fn write_method_5(ctx: &mut VmCtx, src: &[u8], offset:usize){
86 ctx.mem.splice(offset..offset+src.len(), src);
87
88}
89
90// Method 6: copy_non_overlapping (memcpy)
91fn write_method_6(ctx: &mut VmCtx, src: &[u8], offset:usize){

Callers

nothing calls this directly

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected