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

Method internal_size

crates/wasmtime/src/runtime/memory.rs:535–539  ·  view source on GitHub ↗
(&self, store: &StoreOpaque)

Source from the content-addressed store, hash-verified

533 }
534
535 pub(crate) fn internal_size(&self, store: &StoreOpaque) -> u64 {
536 let byte_size = self.internal_data_size(store);
537 let page_size = usize::try_from(self._page_size(store)).unwrap();
538 u64::try_from(byte_size / page_size).unwrap()
539 }
540
541 /// Returns the size of a page, in bytes, for this memory.
542 ///

Callers 3

update_sizeMethod · 0.80
fromMethod · 0.80
sizeMethod · 0.80

Calls 3

internal_data_sizeMethod · 0.80
_page_sizeMethod · 0.80
unwrapMethod · 0.45

Tested by

no test coverage detected