[][src]Function wasmer_runtime_c_api::module::wasmer_module_serialize

#[no_mangle]
pub unsafe extern "C" fn wasmer_module_serialize(
    serialized_module: *mut *mut wasmer_serialized_module_t,
    module: *const wasmer_module_t
) -> wasmer_result_t

Serialize the given Module.

The caller owns the object and should call wasmer_serialized_module_destroy to free it.

Returns wasmer_result_t::WASMER_OK upon success.

Returns wasmer_result_t::WASMER_ERROR upon failure. Use wasmer_last_error_length and wasmer_last_error_message to get an error message.