Wire Sysio
Wire Sysion 1.0.0
Loading...
Searching...
No Matches
runtime_interface.hpp
Go to the documentation of this file.
1
#pragma once
2
#include <vector>
3
#include <memory>
4
5
namespace
IR
{
6
struct
Module;
7
}
8
9
namespace
sysio
{
namespace
chain {
10
11
class
apply_context;
12
13
class
wasm_instantiated_module_interface
{
14
public
:
15
virtual
void
apply
(
apply_context
&
context
) = 0;
16
virtual
void
fast_shutdown
() {}
17
18
virtual
~wasm_instantiated_module_interface
();
19
};
20
21
class
wasm_runtime_interface
{
22
public
:
23
virtual
std::unique_ptr<wasm_instantiated_module_interface>
instantiate_module
(
const
char
* code_bytes,
size_t
code_size, std::vector<uint8_t> initial_memory,
24
const
digest_type
& code_hash,
const
uint8_t
&
vm_type
,
const
uint8_t
& vm_version) = 0;
25
26
//immediately exit the currently running wasm_instantiated_module_interface. Yep, this assumes only one can possibly run at a time.
27
virtual
void
immediately_exit_currently_running_module
() = 0;
28
29
virtual
~wasm_runtime_interface
();
30
};
31
32
}}
fc::sha256
Definition
sha256.hpp:12
sysio::chain::apply_context
Definition
apply_context.hpp:18
sysio::chain::wasm_instantiated_module_interface
Definition
runtime_interface.hpp:13
sysio::chain::wasm_instantiated_module_interface::apply
virtual void apply(apply_context &context)=0
sysio::chain::wasm_instantiated_module_interface::~wasm_instantiated_module_interface
virtual ~wasm_instantiated_module_interface()
Definition
wasm_interface.cpp:111
sysio::chain::wasm_instantiated_module_interface::fast_shutdown
virtual void fast_shutdown()
Definition
runtime_interface.hpp:16
sysio::chain::wasm_interface::vm_type
vm_type
Definition
wasm_interface.hpp:27
sysio::chain::wasm_runtime_interface
Definition
runtime_interface.hpp:21
sysio::chain::wasm_runtime_interface::instantiate_module
virtual std::unique_ptr< wasm_instantiated_module_interface > 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)=0
sysio::chain::wasm_runtime_interface::~wasm_runtime_interface
virtual ~wasm_runtime_interface()
Definition
wasm_interface.cpp:112
sysio::chain::wasm_runtime_interface::immediately_exit_currently_running_module
virtual void immediately_exit_currently_running_module()=0
IR
Definition
wasm_sysio_constraints.hpp:6
sysio
Definition
abi_serializer.cpp:8
uint8_t
unsigned char uint8_t
Definition
stdint.h:124
context
Definition
yubihsm_winhttp.c:52
libraries
chain
include
sysio
chain
webassembly
runtime_interface.hpp
Generated by
1.12.0