| 
    Kagome
    
   Polkadot Runtime Engine in C++17 
   | 
 
#include <module_impl.hpp>
Public Types | |
| enum | Error { Error::EMPTY_STATE_CODE = 1, Error::INVALID_STATE_CODE } | 
Public Member Functions | |
| ModuleImpl (ModuleImpl &&)=default | |
| ModuleImpl & | operator= (ModuleImpl &&)=delete | 
| ModuleImpl (const ModuleImpl &)=delete | |
| ModuleImpl & | operator= (const ModuleImpl &)=delete | 
| ~ModuleImpl () override=default | |
| outcome::result< std::shared_ptr< ModuleInstance > > | instantiate () const override | 
  Public Member Functions inherited from kagome::runtime::Module | |
| virtual | ~Module ()=default | 
Static Public Member Functions | |
| static outcome::result< std::unique_ptr< ModuleImpl > > | createFromCode (const std::vector< uint8_t > &code, std::shared_ptr< const InstanceEnvironmentFactory > env_factory_, const common::Hash256 &code_hash) | 
Static Public Attributes | |
| static constexpr auto | kDefaultHeappages = 1024 | 
Private Member Functions | |
| ModuleImpl (std::unique_ptr< wasm::Module > &&module, std::shared_ptr< const InstanceEnvironmentFactory > env_factory, const common::Hash256 &code_hash) | |
Private Attributes | |
| std::shared_ptr< const InstanceEnvironmentFactory > | env_factory_ | 
| std::shared_ptr< wasm::Module > | module_ | 
| const common::Hash256 | code_hash_ | 
Stores a wasm::Module and a wasm::Module instance which contains the module and the provided runtime external interface
Definition at line 32 of file module_impl.hpp.
      
  | 
  strong | 
| Enumerator | |
|---|---|
| EMPTY_STATE_CODE | |
| INVALID_STATE_CODE | |
Definition at line 36 of file module_impl.hpp.
      
  | 
  default | 
      
  | 
  delete | 
      
  | 
  overridedefault | 
      
  | 
  private | 
Definition at line 35 of file module_impl.cpp.
      
  | 
  static | 
Definition at line 46 of file module_impl.cpp.
      
  | 
  overridevirtual | 
Implements kagome::runtime::Module.
Definition at line 81 of file module_impl.cpp.
      
  | 
  delete | 
      
  | 
  delete | 
      
  | 
  private | 
Definition at line 61 of file module_impl.hpp.
      
  | 
  private | 
Definition at line 59 of file module_impl.hpp.
      
  | 
  static | 
Definition at line 35 of file module_impl.hpp.
      
  | 
  private | 
Definition at line 60 of file module_impl.hpp.