Beispiel #1
0
        internal Host(Interop.WasmConfigHandle config)
        {
            var engine = Interop.wasm_engine_new_with_config(config);

            config.SetHandleAsInvalid();

            Initialize(engine);
        }
Beispiel #2
0
        internal Engine(Interop.WasmConfigHandle config)
        {
            Handle = Interop.wasm_engine_new_with_config(config);
            config.SetHandleAsInvalid();

            if (Handle.IsInvalid)
            {
                throw new WasmtimeException("Failed to create Wasmtime engine.");
            }
        }