Copy a slice of memory to another place in memory.
(&self, store: &mut Store, src: usize, dst: usize, len: usize)
| 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<()> { |