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

Function wasmtime_sharedmemory_data

crates/c-api/src/sharedmemory.rs:37–41  ·  view source on GitHub ↗
(
    mem: &wasmtime_sharedmemory_t,
)

Source from the content-addressed store, hash-verified

35
36#[unsafe(no_mangle)]
37pub extern "C" fn wasmtime_sharedmemory_data(
38 mem: &wasmtime_sharedmemory_t,
39) -> *const UnsafeCell<u8> {
40 mem.data().as_ptr()
41}
42
43#[unsafe(no_mangle)]
44pub extern "C" fn wasmtime_sharedmemory_data_size(mem: &wasmtime_sharedmemory_t) -> usize {

Callers

nothing calls this directly

Calls 2

as_ptrMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected