API Functions

Function

WasmModule WasmVM::module_parse(std::istream &stream)
std::ostream &WasmVM::module_dump(const WasmModule &module, std::ostream &stream)
std::ostream &WasmVM::module_encode(const WasmModule &module, std::ostream &stream)
WasmModule WasmVM::module_decode(std::istream &stream)
std::optional<Exception::Exception> WasmVM::module_validate(const WasmModule &module)
ModuleInst &WasmVM::module_instanciate(ModuleInst &moduleInst, Store &store, const WasmModule &module, std::vector<ExternVal> externval)

Exception

struct WasmVM::Exception::Exception : public std::runtime_error
Exception(std::string msg)
struct WasmVM::Exception::Parse : public Exception
Parse(std::string msg, std::pair<size_t, size_t> location)
std::pair<size_t, size_t> location
struct WasmVM::Exception::Decode : public Exception
Decode(std::string msg, size_t location)
size_t location
struct WasmVM::Exception::Warning
Warning(std::string msg)
Warning(const char *msg)
static void regist(std::function<void(std::string)> handler)