6 #ifndef KAGOME_CORE_RUNTIME_MEMORY_PROVIDER_HPP 7 #define KAGOME_CORE_RUNTIME_MEMORY_PROVIDER_HPP 21 virtual std::optional<std::reference_wrapper<runtime::Memory>>
23 [[nodiscard]]
virtual outcome::result<void>
resetMemory(
29 #endif // KAGOME_CORE_RUNTIME_MEMORY_PROVIDER_HPP uint32_t WasmSize
Size type is uint32_t because we are working in 32 bit address space.
virtual ~MemoryProvider()=default
virtual outcome::result< void > resetMemory(WasmSize heap_base)=0
virtual std::optional< std::reference_wrapper< runtime::Memory > > getCurrentMemory() const =0