#include <module_cache.hpp>
|
| ModuleCache (std::shared_ptr< crypto::Hasher > hasher, fs::path cache_dir) |
|
std::vector< WAVM::U8 > | getCachedObject (const WAVM::U8 *wasmBytes, WAVM::Uptr numWASMBytes, std::function< std::vector< WAVM::U8 >()> &&compileThunk) override |
|
WAVM runtime cache. Attempts to fetch precompiled module from fs and saves compiled module upon cache miss.
Definition at line 27 of file module_cache.hpp.
kagome::runtime::wavm::ModuleCache::ModuleCache |
( |
std::shared_ptr< crypto::Hasher > |
hasher, |
|
|
fs::path |
cache_dir |
|
) |
| |
std::vector< WAVM::U8 > kagome::runtime::wavm::ModuleCache::getCachedObject |
( |
const WAVM::U8 * |
wasmBytes, |
|
|
WAVM::Uptr |
numWASMBytes, |
|
|
std::function< std::vector< WAVM::U8 >()> && |
compileThunk |
|
) |
| |
|
override |
fs::path kagome::runtime::wavm::ModuleCache::cache_dir_ |
|
private |
std::shared_ptr<crypto::Hasher> kagome::runtime::wavm::ModuleCache::hasher_ |
|
private |
log::Logger kagome::runtime::wavm::ModuleCache::logger_ |
|
private |
The documentation for this struct was generated from the following files: