MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / memory_size_bytes

Method memory_size_bytes

crates/debugger/src/host/opaque.rs:199–202  ·  view source on GitHub ↗
(&mut self, memory: Memory)

Source from the content-addressed store, hash-verified

197 }
198
199 async fn memory_size_bytes(&mut self, memory: Memory) -> Result<u64> {
200 self.with_store(move |store| u64::try_from(memory.data_size(&store)).unwrap())
201 .await
202 }
203
204 async fn memory_page_size(&mut self, memory: Memory) -> Result<u64> {
205 self.with_store(move |store| memory.page_size(&store)).await

Callers 1

size_bytesMethod · 0.80

Calls 3

with_storeMethod · 0.80
unwrapMethod · 0.45
data_sizeMethod · 0.45

Tested by

no test coverage detected