Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
sysio::chain::webassembly::eosvmoc::eosvmoc_runtime Class Reference

#include <sys-vm-oc.hpp>

Inheritance diagram for sysio::chain::webassembly::eosvmoc::eosvmoc_runtime:
Collaboration diagram for sysio::chain::webassembly::eosvmoc::eosvmoc_runtime:

Public Member Functions

 eosvmoc_runtime (const boost::filesystem::path data_dir, const eosvmoc::config &eosvmoc_config, const chainbase::database &db)
 
 ~eosvmoc_runtime ()
 
std::unique_ptr< wasm_instantiated_module_interfaceinstantiate_module (const char *code_bytes, size_t code_size, std::vector< uint8_t > initial_memory, const digest_type &code_hash, const uint8_t &vm_type, const uint8_t &vm_version) override
 
void immediately_exit_currently_running_module () override
 
- Public Member Functions inherited from sysio::chain::wasm_runtime_interface
virtual ~wasm_runtime_interface ()
 

Public Attributes

friend eosvmoc_instantiated_module
 
eosvmoc::code_cache_sync cc
 
eosvmoc::executor exec
 
eosvmoc::memory mem
 

Detailed Description

Definition at line 29 of file sys-vm-oc.hpp.

Constructor & Destructor Documentation

◆ eosvmoc_runtime()

sysio::chain::webassembly::eosvmoc::eosvmoc_runtime::eosvmoc_runtime ( const boost::filesystem::path data_dir,
const eosvmoc::config & eosvmoc_config,
const chainbase::database & db )

Definition at line 39 of file sys-vm-oc.cpp.

40 : cc(data_dir, eosvmoc_config, db), exec(cc), mem(wasm_constraints::maximum_linear_memory/wasm_constraints::wasm_page_size) {
41}

◆ ~eosvmoc_runtime()

sysio::chain::webassembly::eosvmoc::eosvmoc_runtime::~eosvmoc_runtime ( )

Definition at line 43 of file sys-vm-oc.cpp.

43 {
44}

Member Function Documentation

◆ immediately_exit_currently_running_module()

void sysio::chain::webassembly::eosvmoc::eosvmoc_runtime::immediately_exit_currently_running_module ( )
overridevirtual

Implements sysio::chain::wasm_runtime_interface.

Definition at line 53 of file sys-vm-oc.cpp.

53{}

◆ instantiate_module()

std::unique_ptr< wasm_instantiated_module_interface > sysio::chain::webassembly::eosvmoc::eosvmoc_runtime::instantiate_module ( const char * code_bytes,
size_t code_size,
std::vector< uint8_t > initial_memory,
const digest_type & code_hash,
const uint8_t & vm_type,
const uint8_t & vm_version )
overridevirtual

Implements sysio::chain::wasm_runtime_interface.

Definition at line 46 of file sys-vm-oc.cpp.

47 {
48
49 return std::make_unique<eosvmoc_instantiated_module>(code_hash, vm_type, *this);
50}
wasm_interface::vm_type vm_type

Member Data Documentation

◆ cc

eosvmoc::code_cache_sync sysio::chain::webassembly::eosvmoc::eosvmoc_runtime::cc

Definition at line 39 of file sys-vm-oc.hpp.

◆ eosvmoc_instantiated_module

friend sysio::chain::webassembly::eosvmoc::eosvmoc_runtime::eosvmoc_instantiated_module

Definition at line 38 of file sys-vm-oc.hpp.

◆ exec

eosvmoc::executor sysio::chain::webassembly::eosvmoc::eosvmoc_runtime::exec

Definition at line 40 of file sys-vm-oc.hpp.

◆ mem

eosvmoc::memory sysio::chain::webassembly::eosvmoc::eosvmoc_runtime::mem

Definition at line 41 of file sys-vm-oc.hpp.


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