Passing complex types such as a string from WasmEdge C SDK to Rust based Wasm Module #3342
GarethEgerton
started this conversation in
General
Replies: 1 comment 1 reply
-
Hi, Due to the limitation of WASM, the input and output can only be non-array types. For the other workaround, you can also try to use the Thanks! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I am trying to find an example of passing complex types such as string or byte array using the WasmEdge C Sdk through WasmEdge to my wasm module.
Currently I can see an example for Go and Rust here: Pass complex parameters to WASM functions | WasmEdge Developer Guides
However there don't appear to be any examples of passing a string or byte array to a wasm module via the C Wasmedge API, just the fibonacci example which only passes integers.
There is an old example here: wasm-cpp/TestWasmEdgeMain.cpp at 92f6538c5995d2dd6771592b91de622374ab0928 · nebula-hackathon-2021/wasm-cpp (github.com) from another repo however it appears that the sdk has since been upgraded and this example no longer runs correctly.
Please, it would be much appreciated if anyone could advise me, or provide a working example of passing a string or byte array via C SDK to a Rust based wasm module?
Cheers,
Gareth
Beta Was this translation helpful? Give feedback.
All reactions