Kagome
Polkadot Runtime Engine in C++17
|
#include <binaryen_memory_provider.hpp>
Public Types | |
enum | Error { Error::OUTDATED_EXTERNAL_INTERFACE = 1 } |
Public Member Functions | |
BinaryenMemoryProvider (std::shared_ptr< const BinaryenMemoryFactory > memory_factory) | |
std::optional< std::reference_wrapper< runtime::Memory > > | getCurrentMemory () const override |
outcome::result< void > | resetMemory (WasmSize heap_base) override |
void | setExternalInterface (std::weak_ptr< RuntimeExternalInterface > rei) |
Public Member Functions inherited from kagome::runtime::MemoryProvider | |
virtual | ~MemoryProvider ()=default |
Private Attributes | |
std::weak_ptr< RuntimeExternalInterface > | external_interface_ |
std::shared_ptr< const BinaryenMemoryFactory > | memory_factory_ |
std::shared_ptr< MemoryImpl > | memory_ |
Definition at line 20 of file binaryen_memory_provider.hpp.
Enumerator | |
---|---|
OUTDATED_EXTERNAL_INTERFACE |
Definition at line 22 of file binaryen_memory_provider.hpp.
kagome::runtime::binaryen::BinaryenMemoryProvider::BinaryenMemoryProvider | ( | std::shared_ptr< const BinaryenMemoryFactory > | memory_factory | ) |
Definition at line 24 of file binaryen_memory_provider.cpp.
|
overridevirtual |
Implements kagome::runtime::MemoryProvider.
Definition at line 31 of file binaryen_memory_provider.cpp.
|
overridevirtual |
Implements kagome::runtime::MemoryProvider.
Definition at line 37 of file binaryen_memory_provider.cpp.
void kagome::runtime::binaryen::BinaryenMemoryProvider::setExternalInterface | ( | std::weak_ptr< RuntimeExternalInterface > | rei | ) |
Definition at line 48 of file binaryen_memory_provider.cpp.
|
private |
Definition at line 36 of file binaryen_memory_provider.hpp.
|
private |
Definition at line 38 of file binaryen_memory_provider.hpp.
|
private |
Definition at line 37 of file binaryen_memory_provider.hpp.