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

Method copy_within

crates/tinywasm/src/reference.rs:256–259  ·  view source on GitHub ↗

Copy a slice of memory to another place in memory.

(&self, store: &mut Store, src: usize, dst: usize, len: usize)

Source from the content-addressed store, hash-verified

254
255 /// Copy a slice of memory to another place in memory.
256 pub fn copy_within(&self, store: &mut Store, src: usize, dst: usize, len: usize) -> Result<()> {
257 self.instance_mut(store)?.copy_within(dst, src, len)?;
258 Ok(())
259 }
260
261 /// Fill a slice of memory with a value.
262 pub fn fill(&self, store: &mut Store, offset: usize, len: usize, val: u8) -> Result<()> {

Calls 1

instance_mutMethod · 0.80