Hi all
I am working on invoke the wasm exported function from c. I have get the wasmtime_extern_t of WASMTIME_EXTERN_FUNC using wasmtime_instance_export_nth, but how can I get the function inputs and outputs?
I just find out that I can use wasmtime_func_type first to get the wasm_functype_t. After get the wasm_functype_t, I
can use wasm_functype_params and wasm_functype_results to get the function signature.
you can check out this example. maybe it helps: https://docs.wasmtime.dev/examples-c-gcd.html
Last updated: Dec 23 2024 at 13:07 UTC