Skip to content

API Host ScriptFunctionDelegate

Liu.Yandong.Hanks edited this page Aug 21, 2026 · 3 revisions

ScriptFunctionDelegate

Low-level compiled function delegate shape used by advanced host callbacks.

Namespace: AuroraScript.Runtime. Kind: delegate.

Back to .NET Host API Reference

Overview

Low-level compiled function delegate shape used by advanced host callbacks.

Quick Reference

A minimal use of ScriptFunctionDelegate.

ScriptFunctionDelegate countArguments = (ctx, args) =>
    ScriptDatum.FromNumber(args.Length);

Methods

Invoke

ScriptDatum Invoke(ScriptContext ctx, Span<ScriptDatum> args)

Parameters

Name Type Required Description
ctx ScriptContext Yes Current script execution context.
args Span<ScriptDatum> Yes Argument array passed to a script or callback.

Returns

Returns ScriptDatum.

Clone this wiki locally