Class LiftedFunction
Assembly: WaaS.Core.dll
View Source
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
public IInvocableFunction? PostReturnFunction { get; }
CoreFunction
View Source
public IInvocableFunction CoreFunction { get; }
StringEncoding
View Source
public CanonOptionStringEncodingKind StringEncoding { get; }
ReallocFunction
View Source
public IInvocableFunction? ReallocFunction { get; }
MemoryToRealloc
View Source
public Memory? MemoryToRealloc { get; }
Type
View Source
public IFunctionType Type { get; }
SupportsDirectInvoke
Whether WaaS.ComponentModel.Runtime.LiftedFunction.InvokeDirectAsync(WaaS.Runtime.ExecutionContext%2cSystem.ReadOnlySpan%7bWaaS.Runtime.StackValueItem%7d) is available.
View Source
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
public bool SupportsDirectStrings { get; }
Methods
LowerString(ExecutionContext, string, out StackValueItem, out StackValueItem)
Stores a string argument into the memory of the guest.
View Source
public void LowerString(ExecutionContext context, string value, out StackValueItem ptr, out StackValueItem length)
Parameters
| Type | Name |
|---|---|
| WaaS.Runtime.ExecutionContext | context |
System.String | value |
| WaaS.Runtime.StackValueItem | ptr |
| WaaS.Runtime.StackValueItem | length |
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
public ValueTask<StackValueItem> InvokeDirectAsync(ExecutionContext context, ReadOnlySpan<StackValueItem> parameters)
Returns
System.Threading.Tasks.ValueTask<WaaS.Runtime.StackValueItem>
Parameters
| Type | Name |
|---|---|
| WaaS.Runtime.ExecutionContext | context |
System.ReadOnlySpan<WaaS.Runtime.StackValueItem> | parameters |
GetBinder(ExecutionContext)
View Source
public FunctionBinder GetBinder(ExecutionContext context)
Returns
WaaS.ComponentModel.Runtime.FunctionBinder
Parameters
| Type | Name |
|---|---|
| WaaS.Runtime.ExecutionContext | context |