24 lines
434 B
Python
24 lines
434 B
Python
from typing import Any, Callable
|
|
|
|
class Module:
|
|
...
|
|
|
|
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:
|
|
...
|