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
Parameters
Type | Name |
---|---|
WaaS.Runtime.ExecutionContext | context |
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
Type | Name |
---|---|
WaaS.Runtime.ExecutionContext | context |
System.ReadOnlySpan<WaaS.Runtime.StackValueItem> | parameters |
System.Span<WaaS.Runtime.StackValueItem> | results |