6 #ifndef KAGOME_CORE_RUNTIME_WAVM_IMPL_WAVM_MEMORY_PROVIDER_HPP 7 #define KAGOME_CORE_RUNTIME_WAVM_IMPL_WAVM_MEMORY_PROVIDER_HPP 13 class IntrinsicModuleInstance;
19 std::shared_ptr<IntrinsicModuleInstance> intrinsic_module);
33 #endif // KAGOME_CORE_RUNTIME_WAVM_IMPL_WAVM_MEMORY_PROVIDER_HPP 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