Class ExternalStackFrame
Represents a stack frame used to invoke an external function.
Assembly: WaaS.Core.dll
View Source
Declaration
public class ExternalStackFrame : IStackFrameCore, IVersionedDisposable<ushort>
Implements:
WaaS.Runtime.IStackFrameCore, WaaS.IVersionedDisposable<T>
Properties
Version
View Source
Declaration
public ushort Version { get; }
Methods
Dispose(ushort)
View Source
Declaration
public void Dispose(ushort version)
Parameters
Type | Name |
---|---|
System.UInt16 | version |
GetResultLength(ushort)
View Source
Declaration
public int GetResultLength(ushort version)
Returns
System.Int32
Parameters
Type | Name |
---|---|
System.UInt16 | version |
MoveNext(ushort, Waker)
View Source
Declaration
public StackFrameState MoveNext(ushort version, Waker waker)
Returns
Parameters
Type | Name |
---|---|
System.UInt16 | version |
WaaS.Runtime.Waker | waker |
TakeResults(ushort, Span<StackValueItem>)
View Source
Declaration
public void TakeResults(ushort version, Span<StackValueItem> dest)
Parameters
Type | Name |
---|---|
System.UInt16 | version |
System.Span<WaaS.Runtime.StackValueItem> | dest |
DoesTakeResults(ushort)
View Source
Declaration
public bool DoesTakeResults(ushort version)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.UInt16 | version |
PushResults(ushort, Span<StackValueItem>)
View Source
Declaration
public void PushResults(ushort version, Span<StackValueItem> source)
Parameters
Type | Name |
---|---|
System.UInt16 | version |
System.Span<WaaS.Runtime.StackValueItem> | source |
Get(ExecutionContext, ExternalFunction, ReadOnlySpan<StackValueItem>)
View Source
Declaration
public static ExternalStackFrame Get(ExecutionContext context, ExternalFunction function, ReadOnlySpan<StackValueItem> inputValues)
Returns
WaaS.Runtime.ExternalStackFrame
Parameters
Type | Name |
---|---|
WaaS.Runtime.ExecutionContext | context |
WaaS.Runtime.ExternalFunction | function |
System.ReadOnlySpan<WaaS.Runtime.StackValueItem> | inputValues |