Skip to main content

Class ExternalFunction

Represents a function that can be invoked from a WebAssembly module.

Assembly: WaaS.Core.dll
View Source
Declaration
public abstract class ExternalFunction : IInvocableFunction, IExternal

Derived:
WaaS.Runtime.ExternalFunctionCoreBoxedDelegate, WaaS.Runtime.ExternalFunctionDelegate, WaaS.Runtime.ExternalFunctionPointer

Implements:
WaaS.Runtime.IInvocableFunction, WaaS.Runtime.IExternal

Properties

Type

View Source
Declaration
public abstract FunctionType Type { get; }

Methods

CreateFrame(ExecutionContext, ReadOnlySpan<StackValueItem>)

View Source
Declaration
public StackFrame CreateFrame(ExecutionContext context, ReadOnlySpan<StackValueItem> inputValues)
Returns

WaaS.Runtime.StackFrame

Parameters
TypeName
WaaS.Runtime.ExecutionContextcontext
System.ReadOnlySpan<WaaS.Runtime.StackValueItem>inputValues

Invoke(ExecutionContext, ReadOnlySpan<StackValueItem>, Span<StackValueItem>)

View Source
Declaration
public abstract void Invoke(ExecutionContext context, ReadOnlySpan<StackValueItem> parameters, Span<StackValueItem> results)
Parameters
TypeName
WaaS.Runtime.ExecutionContextcontext
System.ReadOnlySpan<WaaS.Runtime.StackValueItem>parameters
System.Span<WaaS.Runtime.StackValueItem>results

Implements