Kagome
Polkadot Runtime Engine in C++17
|
#include <memory_extension.hpp>
Public Member Functions | |
MemoryExtension (std::shared_ptr< const runtime::MemoryProvider > memory_provider) | |
runtime::WasmPointer | ext_allocator_malloc_version_1 (runtime::WasmSize size) |
void | ext_allocator_free_version_1 (runtime::WasmPointer ptr) |
Private Attributes | |
std::shared_ptr< const runtime::MemoryProvider > | memory_provider_ |
log::Logger | logger_ |
Implements extension functions related to memory Works with memory of wasm runtime
Definition at line 21 of file memory_extension.hpp.
|
explicit |
Definition at line 14 of file memory_extension.cpp.
void kagome::host_api::MemoryExtension::ext_allocator_free_version_1 | ( | runtime::WasmPointer | ptr | ) |
Definition at line 26 of file memory_extension.cpp.
runtime::WasmPointer kagome::host_api::MemoryExtension::ext_allocator_malloc_version_1 | ( | runtime::WasmSize | size | ) |
Definition at line 21 of file memory_extension.cpp.
|
private |
Definition at line 39 of file memory_extension.hpp.
|
private |
Definition at line 38 of file memory_extension.hpp.