Interface IHost
The interface implemented by Wasmtime hosts.
Namespace: Wasmtime
Assembly: Wasmtime.Dotnet.dll
Syntax
public interface IHost
Properties
| Improve this Doc View SourceInstance
The Instance that the host is bound to.
Declaration
Instance Instance { get; set; }
Property Value
| Type | Description |
|---|---|
| Instance |
Remarks
A host can only bind to one module instance at a time.
Methods
| Improve this Doc View SourceGetImportBindings(Module)
Gets the import bindings of the host given a WebAssembly module.
Declaration
virtual List<Binding> GetImportBindings(Module module)
Parameters
| Type | Name | Description |
|---|---|---|
| Module | module | The WebAssembly module to get the import bindings for. |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.List<Binding> | Returns the list of import bindings for the host. |