Skip to main content

load_wasm_bytes

Function load_wasm_bytes 

Source
pub fn load_wasm_bytes(
    bytes: &[u8],
    path: &Path,
    limits: &WasmLimits,
) -> Result<RuntimePlugin, LoadError>
Expand description

load_wasm for a module already in memory: path is only where the plugin says it came from (its RuntimePlugin::path and the path in a LoadError). A host that checked the bytes first (against a lockfile, say) loads those bytes, not the file again.