Show / Hide Table of Contents

Class Import

Use this class to create the various Import objects (Globals, Memory, Function and Tables)

Inheritance
System.Object
Import
Namespace: WasmerSharp
Assembly: WasmerSharp.dll
Syntax
public class Import

Constructors

Import(String, String, Global)

Creates a Global import.

Declaration
public Import (string moduleName, string importName, WasmerSharp.Global global);
Parameters
Type Name Description
System.String moduleName

The module name for this import

System.String importName

The name for this import.

Global global

The global object to import

Import(String, String, ImportFunction)

Creates a Function import.

Declaration
public Import (string moduleName, string importName, WasmerSharp.ImportFunction function);
Parameters
Type Name Description
System.String moduleName

The module name for this import

System.String importName

The name for this import

ImportFunction function

The function to import

Import(String, String, Memory)

Creates a Memory import.

Declaration
public Import (string moduleName, string importName, WasmerSharp.Memory memory);
Parameters
Type Name Description
System.String moduleName

The module name for this import

System.String importName

The name for this import, if not specified, it will default to "memory"

Memory memory

The memory object to import

Import(String, String, Table)

Creates a Table import.

Declaration
public Import (string moduleName, string importName, WasmerSharp.Table table);
Parameters
Type Name Description
System.String moduleName

The module name for this import

System.String importName

The name for this import

Table table

The table to import

Properties

ImportName

The name for this import

Declaration
public string ImportName { get; }
Property Value
Type Description
System.String

To be added.

Kind

The kind of import

Declaration
public WasmerSharp.ImportExportKind Kind { get; }
Property Value
Type Description
ImportExportKind

To be added.

ModuleName

The module name for this import

Declaration
public string ModuleName { get; }
Property Value
Type Description
System.String

To be added.

Back to top Copyright © 2015-2017 Microsoft
Generated by DocFX