MCPcopy Create free account
hub / github.com/explodingcamera/tinywasm / write_all

Method write_all

crates/tinywasm/src/store/memory/vec.rs:91–95  ·  view source on GitHub ↗
(&mut self, addr: usize, src: &[u8])

Source from the content-addressed store, hash-verified

89
90 #[inline(always)]
91 fn write_all(&mut self, addr: usize, src: &[u8]) -> Option<()> {
92 let dst = self.data.get_mut(addr..addr.checked_add(src.len())?)?;
93 dst.copy_from_slice(src);
94 Some(())
95 }
96
97 #[inline(always)]
98 fn fill(&mut self, addr: usize, len: usize, val: u8) -> Option<()> {

Callers 9

write_output_bytesFunction · 0.45
bench_write_allFunction · 0.45
bench_read_exactFunction · 0.45
copy_from_sliceMethod · 0.45
exec_memory_initMethod · 0.45
init_dataMethod · 0.45
copy_from_memoryMethod · 0.45
save_csvMethod · 0.45

Calls 2

lenMethod · 0.45
copy_from_sliceMethod · 0.45

Tested by 2

save_csvMethod · 0.36