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

Method size

crates/c-api/include/wasmtime/memory.hh:51–53  ·  view source on GitHub ↗

Returns the size, in WebAssembly pages, of this memory.

Source from the content-addressed store, hash-verified

49
50 /// Returns the size, in WebAssembly pages, of this memory.
51 uint64_t size(Store::Context cx) const {
52 return wasmtime_memory_size(cx.ptr, &memory);
53 }
54
55 /// Returns a `span` of where this memory is located in the host.
56 ///

Callers

nothing calls this directly

Calls 1

wasmtime_memory_sizeFunction · 0.85

Tested by

no test coverage detected