|
|
public static ValueTask<int> DoStringAsync(this LuaState state, string source, Memory<LuaValue> buffer, string? chunkName = null, CancellationToken cancellationToken = default)
|
|
public static ValueTask<int> DoStringAsync(this LuaState state, string source, Memory<LuaValue> buffer, string? chunkName = null, CancellationToken cancellationToken = default)
|
|
|
var chunk = LuaCompiler.Default.Compile(syntaxTree, chunkName);
|
|
var chunk = LuaCompiler.Default.Compile(syntaxTree, chunkName);
|
|
|
return state.RunAsync(chunk, buffer, cancellationToken);
|
|
return state.RunAsync(chunk, buffer, cancellationToken);
|