polywrap_wasm.imports.env module

This module contains the env family of imports for the Wasm module.

class polywrap_wasm.imports.env.WrapEnvImports[source]

Bases: BaseWrapImports

Defines the env family of imports for the Wasm module.

wrap_load_env(ptr: int) None[source]

Write the env in the shared memory at Wasm allocated empty env slot.

Parameters:

ptr (int) – The pointer to the empty env slot in memory.

Raises:

WasmAbortError – if the env is not set from the host.