Show / Hide Table of Contents

Class ExternFunction

Represents an external (instantiated) WebAssembly function.

Inheritance
System.Object
ExternFunction
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Wasmtime.Externs
Assembly: Wasmtime.Dotnet.dll
Syntax
public class ExternFunction

Properties

| Improve this Doc View Source

Name

The name of the WebAssembly function.

Declaration
public string Name { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Parameters

The parameters of the WebAssembly function.

Declaration
public IReadOnlyList<ValueKind> Parameters { get; }
Property Value
Type Description
System.Collections.Generic.IReadOnlyList<ValueKind>
| Improve this Doc View Source

Results

The results of the WebAssembly function.

Declaration
public IReadOnlyList<ValueKind> Results { get; }
Property Value
Type Description
System.Collections.Generic.IReadOnlyList<ValueKind>

Methods

| Improve this Doc View Source

Invoke(Object[])

Invokes the WebAssembly function.

Declaration
public object Invoke(params object[] arguments)
Parameters
Type Name Description
System.Object[] arguments

The array of arguments to pass to the function.

Returns
Type Description
System.Object

Returns null if the function has no return value. Returns the value if the function returns a single value. Returns an array of values if the function returns more than one value.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX