wasmer-python icon indicating copy to clipboard operation
wasmer-python copied to clipboard

Support getting and setting element in a table

Open clauverjat opened this issue 3 years ago • 0 comments

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 avatar Nov 22 '22 17:11 clauverjat