WASM Memory Management
Let’s take a look at the code! In the following samples I will show how to wire up complex types in both directions.
Here is the object
This is essentially the same process in reverse. An object with two properties is encoded and written into shard memory before being consumed by the C++ code below.
The C++ code reads out the two properties and returns the sum after adding them.
As always my demo project is available on Github.