Kagome
Polkadot Runtime Engine in C++17
binaryen_memory_factory.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_BINARYEN_WASM_MEMORY_FACTORY_HPP
7 #define KAGOME_BINARYEN_WASM_MEMORY_FACTORY_HPP
8 
10 
11 namespace kagome::runtime::binaryen {
12 
14  public:
15  virtual ~BinaryenMemoryFactory() = default;
16 
17  virtual std::unique_ptr<MemoryImpl> make(
18  wasm::ShellExternalInterface::Memory *memory, WasmSize heap_base) const;
19  };
20 
21 } // namespace kagome::runtime::binaryen
22 
23 #endif // KAGOME_BINARYEN_WASM_MEMORY_FACTORY_HPP
uint32_t WasmSize
Size type is uint32_t because we are working in 32 bit address space.
Definition: types.hpp:35
virtual std::unique_ptr< MemoryImpl > make(wasm::ShellExternalInterface::Memory *memory, WasmSize heap_base) const