15 std::shared_ptr<IntrinsicModuleInstance> module)
16 : intrinsic_module_{std::move(module)} {
20 std::optional<std::reference_wrapper<runtime::Memory>>
23 ? std::optional<std::reference_wrapper<runtime::Memory>>(
32 return outcome::success();
uint32_t WasmSize
Size type is uint32_t because we are working in 32 bit address space.
std::shared_ptr< IntrinsicModuleInstance > intrinsic_module_
WavmExternalMemoryProvider(std::shared_ptr< IntrinsicModuleInstance > intrinsic_module)
outcome::result< void > resetMemory(WasmSize heap_base) override
std::shared_ptr< Memory > current_memory_
std::optional< std::reference_wrapper< runtime::Memory > > getCurrentMemory() const override