src/runtime/binaryen/runtime_environment.cpp¶
Namespaces¶
| Name |
|---|
| sgns |
| sgns::runtime |
| sgns::runtime::binaryen |
Source code¶
#include "runtime/binaryen/runtime_environment.hpp"
#include "crypto/hasher.hpp"
#include "runtime/binaryen/module/wasm_module.hpp"
namespace sgns::runtime::binaryen {
outcome::result<RuntimeEnvironment> RuntimeEnvironment::create(
const std::shared_ptr<RuntimeExternalInterface> &rei,
const std::shared_ptr<WasmModule> &module,
const base::Buffer &state_code) {
return RuntimeEnvironment{
module->instantiate(rei), rei->memory(), boost::none};
}
} // namespace sgns::runtime::binaryen
Updated on 2026-03-04 at 13:10:45 -0800