Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

Small issues in passing-data example #55

Open
ccorcoveanu opened this issue May 13, 2020 · 0 comments
Open

Small issues in passing-data example #55

ccorcoveanu opened this issue May 13, 2020 · 0 comments
Labels
🐞 bug Something isn't working 📦 C/C++

Comments

@ccorcoveanu
Copy link

I found some issues in the passing data example:
https://docs.wasmer.io/integrations/c/examples/passing-data

First, the path to the wasm module (example-wasienv-wasm/strings-wasm-is-cool/strings-wasm-is-cool.wasm) seems to a different one than the one pointed to use.

On the premise that the correct one is this: https://github.com/wasmerio/docs.wasmer.io/blob/master/integrations/shared/c/passing-data.c, there are some fixes to be made.

First, when calling the add_wasm_is_cool function, the length of the original string should be passed as an argument. The second one is that the function that returns the pointer to the byte_buffer is called get_wasm_memory_buffer_pointer instead of get_buffer_pointer

@jubianchi jubianchi added 🐞 bug Something isn't working 📦 C/C++ labels Nov 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐞 bug Something isn't working 📦 C/C++
Projects
None yet
Development

No branches or pull requests

2 participants