#include <module_instance.hpp>
Definition at line 29 of file module_instance.hpp.
Enumerator |
---|
FUNC_NOT_FOUND |
|
WRONG_ARG_COUNT |
|
EXECUTION_ERROR |
|
WRONG_RETURN_TYPE |
|
Definition at line 33 of file module_instance.hpp.
kagome::runtime::wavm::ModuleInstanceImpl::ModuleInstanceImpl |
( |
InstanceEnvironment && |
env, |
|
|
WAVM::Runtime::GCPointer< WAVM::Runtime::Instance > |
instance, |
|
|
WAVM::Runtime::ModuleRef |
module, |
|
|
std::shared_ptr< const CompartmentWrapper > |
compartment, |
|
|
const common::Hash256 & |
code_hash |
|
) |
| |
outcome::result< PtrSize > kagome::runtime::wavm::ModuleInstanceImpl::callExportFunction |
( |
std::string_view |
name, |
|
|
common::BufferView |
encoded_args |
|
) |
| const |
|
overridevirtual |
Call the instance's function
- Parameters
-
name | - name of the function |
args | - a pointer-size describing a buffer with the function parameters |
- Returns
- a pointer-size with the buffer returned by the call
Implements kagome::runtime::ModuleInstance.
Definition at line 102 of file module_instance.cpp.
void kagome::runtime::wavm::ModuleInstanceImpl::forDataSegment |
( |
DataSegmentProcessor const & |
callback | ) |
const |
|
overridevirtual |
const common::Hash256& kagome::runtime::wavm::ModuleInstanceImpl::getCodeHash |
( |
| ) |
const |
|
inlineoverridevirtual |
InstanceEnvironment const & kagome::runtime::wavm::ModuleInstanceImpl::getEnvironment |
( |
| ) |
const |
|
overridevirtual |
outcome::result< std::optional< WasmValue > > kagome::runtime::wavm::ModuleInstanceImpl::getGlobal |
( |
std::string_view |
name | ) |
const |
|
overridevirtual |
outcome::result< void > kagome::runtime::wavm::ModuleInstanceImpl::resetEnvironment |
( |
| ) |
|
|
overridevirtual |
std::shared_ptr<const CompartmentWrapper> kagome::runtime::wavm::ModuleInstanceImpl::compartment_ |
|
private |
WAVM::Runtime::GCPointer<WAVM::Runtime::Instance> kagome::runtime::wavm::ModuleInstanceImpl::instance_ |
|
private |
log::Logger kagome::runtime::wavm::ModuleInstanceImpl::logger_ |
|
private |
WAVM::Runtime::ModuleRef kagome::runtime::wavm::ModuleInstanceImpl::module_ |
|
private |
The documentation for this class was generated from the following files: