Execute bytecode
Executes previously compiled code
- Parameters
- Advanced call ?
Function ExecuteBytecode(Val Lua, Val Bytecode) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Lua | - | Arbitrary | ✔ | Lua AddIn or Lua version to run |
| Bytecode | - | BinaryData | ✔ | Bytecode to execute |
Returns
Arbitrary - Execution result
| Parameter | Description |
|---|---|
| addin_mode | Manual selection of external component connection mode (for 1C): Isolated, NotIsolated |
tip
Parameters with Binary data type can also accept file paths on disk and URLs
Caution
NOCLI: this method is not available in CLI version
1C:Enterprise/OneScript code example
Bytecode = OPI_Lua.CompileCodeFromString("Lua54", "return 11");
Result = OPI_Lua.ExecuteBytecode("Lua54", Bytecode);
Result
11