Load given wasm file, wasm bytecode, or wasm module.
| 125 | |
| 126 | /// Load given wasm file, wasm bytecode, or wasm module. |
| 127 | Expect<void> loadWasm(const std::filesystem::path &Path) { |
| 128 | std::unique_lock Lock(Mutex); |
| 129 | return unsafeLoadWasm(Path); |
| 130 | } |
| 131 | Expect<void> loadWasm(Span<const Byte> Code) { |
| 132 | std::unique_lock Lock(Mutex); |
| 133 | return unsafeLoadWasm(Code); |
no outgoing calls