/// Similar to `new`, but does not perform any validation. Only use this
/// on modules which are known to have been validated already!
Similar to `new`, but does not perform any validation. Only use this
on modules which are known to have been validated already!
Similar to ` new ` but does not perform any validation . Only use this on modules which are known to have been validated already!
pub fn new_unchecked(store: &HostRef<Store>, binary: &[u8]) -> Result<Module> {
        let (imports, exports) = read_imports_and_exports(binary)?;
        Ok(Module {
            store: store.clone(),
            source: ModuleCodeSource::Binary(binary.into()),
            imports,
            exports,
        })
    }
pub fn new_unchecked ( store : & HostRef < Store > , binary : & [ u8 ] ) -> Result < Module > { let ( imports , exports ) = read_imports_and_exports ( binary ) ? ; Ok ( Module { store : store . clone ( ) , source : ModuleCodeSource :: Binary ( binary . into ( ) ) , imports , exports , } ) }
Similar to `new`, but does not perform any validation.
Similar to ` new ` but does not perform any validation .
store
&HostRef<Store>
binary
&[u8]