First, thank you for this library, it works great and the user-facing code is quite easy to grasp, even for a zig and wasm newcomer as myself.
I would like to get help on how to pass strings (and therefore, serialized data structure) back and forth between the host and the module.
I understand the only way is to put the string into the memory and pass addresses and offsets to tell the module where to find the string, but I can't seem to achieve it.
I tried with Instance.getMemory() and Memory.write() but the write function only handle numbers :(
I believe I should be able to write from zware into the DATA section and then... I'm not sure and I'm lost.
First, thank you for this library, it works great and the user-facing code is quite easy to grasp, even for a zig and wasm newcomer as myself.
I would like to get help on how to pass strings (and therefore, serialized data structure) back and forth between the host and the module.
I understand the only way is to put the string into the memory and pass addresses and offsets to tell the module where to find the string, but I can't seem to achieve it.
I tried with
Instance.getMemory()andMemory.write()but thewritefunction only handle numbers :(I believe I should be able to write from zware into the
DATAsection and then... I'm not sure and I'm lost.