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

Function wasmtime_memory_data

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

Source from the content-addressed store, hash-verified

105
106#[unsafe(no_mangle)]
107pub extern "C" fn wasmtime_memory_data(
108 store: WasmtimeStoreContextMut<'_>,
109 mem: &Memory,
110) -> *const u8 {
111 mem.data_mut(store).as_ptr()
112}
113
114#[unsafe(no_mangle)]
115pub extern "C" fn wasmtime_memory_data_size(

Callers 3

mainFunction · 0.85
mainFunction · 0.85
dataMethod · 0.85

Calls 2

as_ptrMethod · 0.45
data_mutMethod · 0.45

Tested by

no test coverage detected