Commit 238f45d
authored
docs: clarify that * in signatures does address conversion (#4681)
docs: clarify that * and $ in signatures does address conversion
It was non-obvious that `*` means the runtime does the app to native
conversion automatically. With the current docstring, one might assume
that the runtime only does boundary checks and not address conversion.
Under this assumption, passing the already-native address to
`wasm_runtime_addr_app_to_native` will lead to unexpected behavior1 parent b08b02a commit 238f45d
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1740 | 1740 | | |
1741 | 1741 | | |
1742 | 1742 | | |
1743 | | - | |
| 1743 | + | |
| 1744 | + | |
| 1745 | + | |
1744 | 1746 | | |
1745 | 1747 | | |
1746 | 1748 | | |
1747 | | - | |
| 1749 | + | |
| 1750 | + | |
| 1751 | + | |
1748 | 1752 | | |
1749 | 1753 | | |
1750 | 1754 | | |
| |||
0 commit comments