DumpFunction.cs 472 B

123456789101112131415
  1. namespace Lua.Standard.Text;
  2. // stirng.dump is not supported (throw exception)
  3. public sealed class DumpFunction : LuaFunction
  4. {
  5. public override string Name => "dump";
  6. public static readonly DumpFunction Instance = new();
  7. protected override ValueTask<int> InvokeAsyncCore(LuaFunctionExecutionContext context, Memory<LuaValue> buffer, CancellationToken cancellationToken)
  8. {
  9. throw new NotSupportedException("stirng.dump is not supported");
  10. }
  11. }