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

Function wasm_memory_data

crates/c-api/src/memory.rs:65–67  ·  view source on GitHub ↗
(m: &wasm_memory_t)

Source from the content-addressed store, hash-verified

63
64#[unsafe(no_mangle)]
65pub unsafe extern "C" fn wasm_memory_data(m: &wasm_memory_t) -> *mut u8 {
66 m.memory().data_ptr(m.ext.store.context())
67}
68
69#[unsafe(no_mangle)]
70pub unsafe extern "C" fn wasm_memory_data_size(m: &wasm_memory_t) -> usize {

Callers

nothing calls this directly

Calls 3

data_ptrMethod · 0.80
memoryMethod · 0.45
contextMethod · 0.45

Tested by

no test coverage detected