MCPcopy Index your code
hub / github.com/explodingcamera/tinywasm / exec_memory_fill

Method exec_memory_fill

crates/tinywasm/src/interpreter/executor.rs:1297–1302  ·  view source on GitHub ↗
(&mut self, addr: u32)

Source from the content-addressed store, hash-verified

1295 }
1296
1297 fn exec_memory_fill(&mut self, addr: u32) -> Result<(), Trap> {
1298 let size = i32::stack_pop(&mut self.store.value_stack);
1299 let val = i32::stack_pop(&mut self.store.value_stack);
1300 let dst = i32::stack_pop(&mut self.store.value_stack);
1301 self.exec_memory_fill_impl(addr, dst, val as u8, size)
1302 }
1303
1304 fn exec_memory_fill_imm(&mut self, addr: u32, val: u8, size: i32) -> Result<(), Trap> {
1305 let dst = i32::stack_pop(&mut self.store.value_stack);

Callers 1

execMethod · 0.80

Calls 1

exec_memory_fill_implMethod · 0.80

Tested by

no test coverage detected