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

Function wasmtime_memory_data_size

crates/c-api/src/memory.rs:115–120  ·  view source on GitHub ↗
(
    store: WasmtimeStoreContext<'_>,
    mem: &Memory,
)

Source from the content-addressed store, hash-verified

113
114#[unsafe(no_mangle)]
115pub extern "C" fn wasmtime_memory_data_size(
116 store: WasmtimeStoreContext<'_>,
117 mem: &Memory,
118) -> usize {
119 mem.data(store).len()
120}
121
122#[unsafe(no_mangle)]
123pub extern "C" fn wasmtime_memory_size(store: WasmtimeStoreContext<'_>, mem: &Memory) -> u64 {

Callers 3

mainFunction · 0.85
mainFunction · 0.85
dataMethod · 0.85

Calls 2

lenMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected