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

Function wasm_module_serialize

crates/c-api/src/module.rs:112–116  ·  view source on GitHub ↗
(module: &wasm_module_t, ret: &mut wasm_byte_vec_t)

Source from the content-addressed store, hash-verified

110#[unsafe(no_mangle)]
111#[cfg(any(feature = "cranelift", feature = "winch"))]
112pub extern "C" fn wasm_module_serialize(module: &wasm_module_t, ret: &mut wasm_byte_vec_t) {
113 if let Ok(buf) = module.module.serialize() {
114 ret.set_buffer(buf);
115 }
116}
117
118#[unsafe(no_mangle)]
119pub unsafe extern "C" fn wasm_module_deserialize(

Callers

nothing calls this directly

Calls 2

set_bufferMethod · 0.80
serializeMethod · 0.45

Tested by

no test coverage detected