Kagome
Polkadot Runtime Engine in C++17
kagome::runtime::wavm::WavmInternalMemoryProvider Class Referencefinal

#include <wavm_internal_memory_provider.hpp>

Inheritance diagram for kagome::runtime::wavm::WavmInternalMemoryProvider:
Collaboration diagram for kagome::runtime::wavm::WavmInternalMemoryProvider:

Public Member Functions

 WavmInternalMemoryProvider (WAVM::Runtime::Memory *memory)
 
std::optional< std::reference_wrapper< runtime::Memory > > getCurrentMemory () const override
 
outcome::result< void > resetMemory (WasmSize heap_base) override
 
- Public Member Functions inherited from kagome::runtime::MemoryProvider
virtual ~MemoryProvider ()=default
 

Private Attributes

WAVM::Runtime::Memory * memory_
 
std::shared_ptr< Memorycurrent_memory_
 

Detailed Description

Definition at line 18 of file wavm_internal_memory_provider.hpp.

Constructor & Destructor Documentation

kagome::runtime::wavm::WavmInternalMemoryProvider::WavmInternalMemoryProvider ( WAVM::Runtime::Memory *  memory)
explicit

Definition at line 14 of file wavm_internal_memory_provider.cpp.

Member Function Documentation

std::optional< std::reference_wrapper< runtime::Memory > > kagome::runtime::wavm::WavmInternalMemoryProvider::getCurrentMemory ( ) const
overridevirtual

Implements kagome::runtime::MemoryProvider.

Definition at line 21 of file wavm_internal_memory_provider.cpp.

outcome::result< void > kagome::runtime::wavm::WavmInternalMemoryProvider::resetMemory ( WasmSize  heap_base)
overridevirtual

Implements kagome::runtime::MemoryProvider.

Definition at line 28 of file wavm_internal_memory_provider.cpp.

Member Data Documentation

std::shared_ptr<Memory> kagome::runtime::wavm::WavmInternalMemoryProvider::current_memory_
private

Definition at line 28 of file wavm_internal_memory_provider.hpp.

WAVM::Runtime::Memory* kagome::runtime::wavm::WavmInternalMemoryProvider::memory_
private

Definition at line 27 of file wavm_internal_memory_provider.hpp.


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