public BinaryCodeSource(ScriptModuleHandle mh) { _mh = mh; }
public LoadedModuleHandle LoadModuleImage(ScriptModuleHandle moduleImage) { var handle = new LoadedModuleHandle(); handle.Module = new LoadedModule(moduleImage.Module); return handle; }
public Process CreateProcess(IHostApplication host, ScriptModuleHandle moduleHandle, ICodeSource src) { SetGlobalEnvironment(host, src); var module = _engine.LoadModuleImage(moduleHandle); return InitProcess(host, src, ref module); }
public void Write(TextWriter output, ScriptModuleHandle module) { WriteImage(output, module.Module); }
private ModuleImage FromHandle(ScriptModuleHandle module) { return module.Module; }
public void Save(ScriptModuleHandle module, Stream output) { _formatter.Serialize(output, FromHandle(module)); }