Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support getting and setting element in a table #659

Open
clauverjat opened this issue Nov 22, 2022 · 0 comments
Open

Support getting and setting element in a table #659

clauverjat opened this issue Nov 22, 2022 · 0 comments
Labels
🎉 enhancement New feature or request

Comments

@clauverjat
Copy link

clauverjat commented Nov 22, 2022

Motivation

In order to interact with my wasm program from Python I need to be able to get the function pointers stored in a table.
I had a look at the Python documentation on WASM table https://wasmerio.github.io/wasmer-python/api/wasmer/wasmer.html#Table but it looks like one can only access the size and the type of the table. I might have overlooked something, so if there is a way to get the function pointers from a table please let me know

Proposed solution

Provide a get and set method on the Table object.

Thanks

@clauverjat clauverjat added the 🎉 enhancement New feature or request label Nov 22, 2022
@clauverjat clauverjat changed the title Support getting and setting element of a table Support getting and setting element in a table Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎉 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant