15 WAVM::Runtime::Memory *memory)
17 BOOST_ASSERT(
memory_ !=
nullptr);
20 std::optional<std::reference_wrapper<runtime::Memory>>
23 ? std::optional<std::reference_wrapper<runtime::Memory>>(
31 return outcome::success();
uint32_t WasmSize
Size type is uint32_t because we are working in 32 bit address space.
std::optional< std::reference_wrapper< runtime::Memory > > getCurrentMemory() const override
outcome::result< void > resetMemory(WasmSize heap_base) override
WavmInternalMemoryProvider(WAVM::Runtime::Memory *memory)
WAVM::Runtime::Memory * memory_
std::shared_ptr< Memory > current_memory_