API Reference¶
- class wasm_gen.ActiveData(_data: _io.BytesIO = <_io.BytesIO object at 0x7f9f27ffd6c0>, memory: int = 0, offset: int = 0, expr: list[wasm_gen.core.Node] = <factory>)¶
- class wasm_gen.BaseFunction(type: wasm_gen.function.FunctionType, _index: int = -1)¶
- class wasm_gen.BaseGlobal(type: wasm_gen.globals.GlobalType, _index: int = -1)¶
- class wasm_gen.BaseMemory(type: wasm_gen.memory.MemoryType, _index: int = -1)¶
- class wasm_gen.Export(node: wasm_gen.core.Node, name: str)¶
- class wasm_gen.Function(type: wasm_gen.function.FunctionType, _index: int = -1, local_vars: list[bytes] = <factory>, body: list[wasm_gen.core.Node] = <factory>)¶
- class wasm_gen.FunctionType(params: list[bytes] = <factory>, results: list[bytes] = <factory>, _index: int = -1)¶
- class wasm_gen.Global(type: wasm_gen.globals.GlobalType, _index: int = -1, expr: list[wasm_gen.core.Node] = <factory>)¶
- class wasm_gen.GlobalType(type: bytes, mutable: bool)¶
- class wasm_gen.Import(node: wasm_gen.core.Node, module: str, name: str)¶
- class wasm_gen.Memory(type: wasm_gen.memory.MemoryType, _index: int = -1)¶
- class wasm_gen.MemoryType(min_pages: int, max_pages: int | None = None)¶
- class wasm_gen.Module(version: int = 1, imports: list[wasm_gen.imports.Import] = <factory>, exports: list[wasm_gen.exports.Export] = <factory>, funcs: list[wasm_gen.function.Function] = <factory>, memories: list[wasm_gen.memory.Memory] = <factory>, globals_: list[wasm_gen.globals.Global] = <factory>, data: list[bytes | wasm_gen.data.ActiveData] = <factory>, _types: list[wasm_gen.function.FunctionType] = <factory>)¶
- class wasm_gen.PassiveData(_data: _io.BytesIO = <_io.BytesIO object at 0x7f9f27ffd6c0>)¶