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

Function write_method_2

src/tests/memwrite_experiment.rs:70–73  ·  view source on GitHub ↗

Method 2: vector write

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

Source from the content-addressed store, hash-verified

68
69// Method 2: vector write
70fn write_method_2(ctx: &mut VmCtx, src: &[u8], offset:usize){
71 (ctx.mem.get(offset)).write(src);
72 ctx.mem.flush();
73}
74
75// Method 4: direct pointer manipulation
76fn write_method_4_u32(ctx: &mut VmCtx, v: u32, offset:usize){

Callers

nothing calls this directly

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected