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

Method grow_to

crates/tinywasm/src/store/memory/lazy.rs:94–96  ·  view source on GitHub ↗
(&mut self, new_len: usize)

Source from the content-addressed store, hash-verified

92 }
93
94 fn grow_to(&mut self, new_len: usize) -> Result<(), crate::Trap> {
95 self.try_with_inner_mut(|inner| inner.grow_to(new_len))?
96 }
97
98 fn read(&self, addr: usize, dst: &mut [u8]) -> usize {
99 self.with_inner(|inner| inner.read(addr, dst))

Callers

nothing calls this directly

Calls 1

try_with_inner_mutMethod · 0.80

Tested by

no test coverage detected