phasm/stubs/wasm3.pyi
2023-05-06 15:24:24 +02:00

27 lines
554 B
Python

from typing import Any, Callable
class Module:
...
def link_function(self, module_name: str, function_name: str, function: Callable[[Any], Any]) -> None:
...
class Runtime:
...
def load(self, wasm_bin: Module) -> None:
...
def get_memory(self, memid: int) -> memoryview:
...
def find_function(self, name: str) -> Callable[[Any], Any]:
...
class Environment:
def new_runtime(self, mem_size: int) -> Runtime:
...
def parse_module(self, wasm_bin: bytes) -> Module:
...