Hello Team! Thanks for the awesome support for wasm target. I am trying to allocate memory in Kotlin and return the pointer back to the host for it to set bytes of the serialised data I want to transfer to the module. Right now by what I have read on forum mainly here:
https://discuss.kotlinlang.org/t/how-to-pass-rich-data-from-a-wasm-host-to-a-kotlin-guest/29527/3, it seems that allocated memory would be collected as soon as function returns. Is there no workaround to somehow
pin
the allocation until host sets the data and kotlin collects the bytes and then
unpin
the allocation ?