polywrap_wasm.imports.invoke module
This module contains the imports for the invoke family of functions.
- class polywrap_wasm.imports.invoke.WrapInvokeImports[source]
Bases:
BaseWrapImportsDefines the invoke family of imports for the Wasm module.
- wrap_invoke_args(method_ptr: int, args_ptr: int) None[source]
Write the method and args of the function to be invoked in the shared memory at Wasm allocated empty method and args slots.
- Parameters:
method_ptr (int) – The pointer to the empty method name string slot in memory.
args_ptr (int) – The pointer to the empty method args bytes slot in memory.
- Raises:
WasmAbortError – if the method or args are not set from the host.