Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
binaryen_memory_factory.cpp
Go to the documentation of this file.
1
6
#include "
runtime/binaryen/binaryen_memory_factory.hpp
"
7
8
#include "
runtime/common/memory_allocator.hpp
"
9
10
namespace
kagome::runtime::binaryen
{
11
12
std::unique_ptr<MemoryImpl>
BinaryenMemoryFactory::make
(
13
wasm::ShellExternalInterface::Memory *memory,
WasmSize
heap_base)
const
{
14
return
std::make_unique<MemoryImpl>(memory, heap_base);
15
}
16
17
}
// namespace kagome::runtime::binaryen
kagome::runtime::WasmSize
uint32_t WasmSize
Size type is uint32_t because we are working in 32 bit address space.
Definition:
types.hpp:35
binaryen_memory_factory.hpp
kagome::runtime::binaryen
Definition:
binaryen_memory_factory.cpp:10
memory_allocator.hpp
kagome::runtime::binaryen::BinaryenMemoryFactory::make
virtual std::unique_ptr< MemoryImpl > make(wasm::ShellExternalInterface::Memory *memory, WasmSize heap_base) const
Definition:
binaryen_memory_factory.cpp:12
core
runtime
binaryen
binaryen_memory_factory.cpp
Generated by
1.8.11