Returning multiple values using WasmEdge C SDK #3344
mtobin-tdab
started this conversation in
General
Replies: 1 comment
-
Please check the rust compiler and the output to learn the memory layout. All the hacks use the same idea: read the binary generated by the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Bear in mind I am new to c++ and am trying to get my head around how the WasmEdge C SDK works.
I am executing a wasm function using
WasmEdge_VMExecute
- the function takesReturnLen
implying that we can return multiple values although I am not sure how this would look on the rust side since only integers can be returned.Could you please advise on this? Below is my simple rust function and SDK code:
This obviously doesn't work but hopefully illustrates what I am attempting.
Beta Was this translation helpful? Give feedback.
All reactions