Class ExecutionContext
Represents an execution context, which is used to manage the execution of WebAssembly functions. It contains a stack of frames and behaves like a thread of execution.
Assembly: WaaS.Core.dll
View Source
Declaration
public class ExecutionContext : IDisposable
Implements:
System.IDisposable
Properties
LastFrame
View Source
Declaration
public StackFrame LastFrame { get; }
ResultLength
View Source
Declaration
public int ResultLength { get; }
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
View Source
Declaration
public void Dispose()
Invoke(IInvocableFunction, ReadOnlySpan<StackValueItem>)
View Source
Declaration
public void Invoke(IInvocableFunction function, ReadOnlySpan<StackValueItem> inputValues)
Parameters
Type | Name |
---|---|
WaaS.Runtime.IInvocableFunction | function |
System.ReadOnlySpan<WaaS.Runtime.StackValueItem> | inputValues |
InvokeAsync(IInvocableFunction, ReadOnlySpan<StackValueItem>)
View Source
Declaration
public ValueTask InvokeAsync(IInvocableFunction function, ReadOnlySpan<StackValueItem> inputValues)
Returns
System.Threading.Tasks.ValueTask
Parameters
Type | Name |
---|---|
WaaS.Runtime.IInvocableFunction | function |
System.ReadOnlySpan<WaaS.Runtime.StackValueItem> | inputValues |
TakeResults(Span<StackValueItem>)
View Source
Declaration
public void TakeResults(Span<StackValueItem> results)
Parameters
Type | Name |
---|---|
System.Span<WaaS.Runtime.StackValueItem> | results |
Implements
System.IDisposable