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

Function wasmtime_module_serialize

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

Source from the content-addressed store, hash-verified

184#[unsafe(no_mangle)]
185#[cfg(any(feature = "cranelift", feature = "winch"))]
186pub extern "C" fn wasmtime_module_serialize(
187 module: &wasmtime_module_t,
188 ret: &mut wasm_byte_vec_t,
189) -> Option<Box<wasmtime_error_t>> {
190 handle_result(module.module.serialize(), |buf| ret.set_buffer(buf))
191}
192
193#[unsafe(no_mangle)]
194pub extern "C" fn wasmtime_module_image_range(

Callers 2

serializeFunction · 0.85
serializeMethod · 0.85

Calls 3

handle_resultFunction · 0.85
set_bufferMethod · 0.80
serializeMethod · 0.45

Tested by

no test coverage detected