Kagome
Polkadot Runtime Engine in C++17
kagome::host_api::MemoryExtension Class Reference

#include <memory_extension.hpp>

Collaboration diagram for kagome::host_api::MemoryExtension:

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::MemoryProvidermemory_provider_
 
log::Logger logger_
 

Detailed Description

Implements extension functions related to memory Works with memory of wasm runtime

Definition at line 21 of file memory_extension.hpp.

Constructor & Destructor Documentation

kagome::host_api::MemoryExtension::MemoryExtension ( std::shared_ptr< const runtime::MemoryProvider memory_provider)
explicit

Definition at line 14 of file memory_extension.cpp.

Member Function Documentation

void kagome::host_api::MemoryExtension::ext_allocator_free_version_1 ( runtime::WasmPointer  ptr)
See also
Extension::ext_allocator_free_version_1

Definition at line 26 of file memory_extension.cpp.

runtime::WasmPointer kagome::host_api::MemoryExtension::ext_allocator_malloc_version_1 ( runtime::WasmSize  size)
See also
Extension::ext_allocator_malloc_version_1

Definition at line 21 of file memory_extension.cpp.

Member Data Documentation

log::Logger kagome::host_api::MemoryExtension::logger_
private

Definition at line 39 of file memory_extension.hpp.

std::shared_ptr<const runtime::MemoryProvider> kagome::host_api::MemoryExtension::memory_provider_
private

Definition at line 38 of file memory_extension.hpp.


The documentation for this class was generated from the following files: