Skip to main content

Class LiftedFunction

Assembly: WaaS.Core.dll​
View Source​
Declaration
public class LiftedFunction : IFunction, ISortedExportable, ISorted, ICanonOptions

Implements:
WaaS.ComponentModel.Runtime.IFunction, WaaS.ComponentModel.Runtime.ISortedExportable, WaaS.ComponentModel.Runtime.ISorted, WaaS.ComponentModel.Runtime.ICanonOptions

Properties​

PostReturnFunction​

View Source​
Declaration
public IInvocableFunction? PostReturnFunction { get; }

CoreFunction​

View Source​
Declaration
public IInvocableFunction CoreFunction { get; }

StringEncoding​

View Source​
Declaration
public CanonOptionStringEncodingKind StringEncoding { get; }

ReallocFunction​

View Source​
Declaration
public IInvocableFunction? ReallocFunction { get; }

MemoryToRealloc​

View Source​
Declaration
public Memory? MemoryToRealloc { get; }

Type​

View Source​
Declaration
public IFunctionType Type { get; }

SupportsDirectInvoke​

Whether WaaS.ComponentModel.Runtime.LiftedFunction.InvokeDirectAsync(WaaS.Runtime.ExecutionContext%2cSystem.ReadOnlySpan%7bWaaS.Runtime.StackValueItem%7d) is available.

View Source​
Declaration
public bool SupportsDirectInvoke { get; }

SupportsDirectStrings​

Whether WaaS.ComponentModel.Runtime.LiftedFunction.LowerString(WaaS.Runtime.ExecutionContext%2cSystem.String%2cWaaS.Runtime.StackValueItem%40%2cWaaS.Runtime.StackValueItem%40) is available.

View Source​
Declaration
public bool SupportsDirectStrings { get; }

Methods​

LowerString(ExecutionContext, string, out StackValueItem, out StackValueItem)​

Stores a string argument into the memory of the guest.

View Source​
Declaration
public void LowerString(ExecutionContext context, string value, out StackValueItem ptr, out StackValueItem length)
Parameters​
TypeName
WaaS.Runtime.ExecutionContextcontext
System.Stringvalue
WaaS.Runtime.StackValueItemptr
WaaS.Runtime.StackValueItemlength

InvokeDirectAsync(ExecutionContext, ReadOnlySpan<StackValueItem>)​

Invokes the core function with the core values of the parameters and returns the core value of the result, without the formatters. The parameters and the result must not need lifting or lowering.

View Source​
Declaration
public ValueTask<StackValueItem> InvokeDirectAsync(ExecutionContext context, ReadOnlySpan<StackValueItem> parameters)
Returns​

System.Threading.Tasks.ValueTask<WaaS.Runtime.StackValueItem>

Parameters​
TypeName
WaaS.Runtime.ExecutionContextcontext
System.ReadOnlySpan<WaaS.Runtime.StackValueItem>parameters

GetBinder(ExecutionContext)​

View Source​
Declaration
public FunctionBinder GetBinder(ExecutionContext context)
Returns​

WaaS.ComponentModel.Runtime.FunctionBinder

Parameters​
TypeName
WaaS.Runtime.ExecutionContextcontext

Implements​