sgns::runtime::binaryen::WasmModuleImpl¶
#include <wasm_module_impl.hpp>
Inherits from sgns::runtime::binaryen::WasmModule
Public Types¶
| Name | |
|---|---|
| enum class | Error |
Public Functions¶
| Name | |
|---|---|
| WasmModuleImpl(WasmModuleImpl && ) =default | |
| WasmModuleImpl & | operator=(WasmModuleImpl && ) =default |
| WasmModuleImpl(const WasmModuleImpl & ) =delete | |
| WasmModuleImpl & | operator=(const WasmModuleImpl & ) =delete |
| ~WasmModuleImpl() override =default | |
| virtual std::unique_ptr< WasmModuleInstance > | instantiate(const std::shared_ptr< RuntimeExternalInterface > & externalInterface) const override |
| outcome::result< std::unique_ptr< WasmModuleImpl > > | createFromCode(const base::Buffer & code, const std::shared_ptr< RuntimeExternalInterface > & rei) |
Additional inherited members¶
Public Functions inherited from sgns::runtime::binaryen::WasmModule
| Name | |
|---|---|
| virtual | ~WasmModule() =default |
Detailed Description¶
Stores a wasm::Module and a wasm::Module instance which contains the module and the provided runtime external interface
Public Types Documentation¶
enum Error¶
| Enumerator | Value | Description |
|---|---|---|
| EMPTY_STATE_CODE | 1 | |
| INVALID_STATE_CODE |
Public Functions Documentation¶
function WasmModuleImpl¶
function operator=¶
function WasmModuleImpl¶
function operator=¶
function ~WasmModuleImpl¶
function instantiate¶
virtual std::unique_ptr< WasmModuleInstance > instantiate(
const std::shared_ptr< RuntimeExternalInterface > & externalInterface
) const override
Reimplements: sgns::runtime::binaryen::WasmModule::instantiate
function createFromCode¶
static outcome::result< std::unique_ptr< WasmModuleImpl > > createFromCode(
const base::Buffer & code,
const std::shared_ptr< RuntimeExternalInterface > & rei
)
Updated on 2026-03-04 at 13:10:43 -0800