Wrapper type over sptr<ModuleInstance>. Allows to return instance back to the ModuleInstancePool upon destruction of BorrowedInstance.
More...
Wrapper type over sptr<ModuleInstance>. Allows to return instance back to the ModuleInstancePool upon destruction of BorrowedInstance.
Definition at line 21 of file runtime_instances_pool.cpp.
kagome::runtime::BorrowedInstance::~BorrowedInstance |
( |
| ) |
|
|
inline |
outcome::result<PtrSize> kagome::runtime::BorrowedInstance::callExportFunction |
( |
std::string_view |
name, |
|
|
common::BufferView |
encoded_args |
|
) |
| const |
|
inlineoverridevirtual |
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 39 of file runtime_instances_pool.cpp.
void kagome::runtime::BorrowedInstance::forDataSegment |
( |
DataSegmentProcessor const & |
callback | ) |
const |
|
inlineoverridevirtual |
const common::Hash256& kagome::runtime::BorrowedInstance::getCodeHash |
( |
| ) |
const |
|
inlineoverridevirtual |
outcome::result<std::optional<WasmValue> > kagome::runtime::BorrowedInstance::getGlobal |
( |
std::string_view |
name | ) |
const |
|
inlineoverridevirtual |
outcome::result<void> kagome::runtime::BorrowedInstance::resetEnvironment |
( |
| ) |
|
|
inlineoverridevirtual |
std::shared_ptr<ModuleInstance> kagome::runtime::BorrowedInstance::instance_ |
|
private |
The documentation for this class was generated from the following file: