5 [DllImport(
"phasorrt.dll", CallingConvention = CallingConvention.Cdecl)]
6 public static extern int evaluatePHS(IntPtr vm,
string script,
string moduleName,
string modulePath,
bool verbose);
8 [DllImport(
"phasorrt.dll", CallingConvention = CallingConvention.Cdecl)]
9 public static extern int evaluatePUL(IntPtr vm,
string script,
string moduleName);
11 [DllImport(
"phasorrt.dll", CallingConvention = CallingConvention.Cdecl)]
12 public static extern int exec(IntPtr vm,
byte[] bytecode, UIntPtr bytecodeSize,
string moduleName,
int argc,
string[] argv);
14 [DllImport(
"phasorrt.dll", CallingConvention = CallingConvention.Cdecl)]
17 [DllImport(
"phasorrt.dll", CallingConvention = CallingConvention.Cdecl)]
20 [DllImport(
"phasorrt.dll", CallingConvention = CallingConvention.Cdecl)]
23 [DllImport(
"phasorrt.dll", CallingConvention = CallingConvention.Cdecl)]
24 public static extern bool resetState(IntPtr vm,
bool resetFunctions,
bool resetVariables);
26 [DllImport(
"phasorrt.dll", CallingConvention = CallingConvention.Cdecl)]
27 public static extern bool compilePHS(
string script,
string moduleName,
string modulePath,
28 byte[] buffer, UIntPtr bufferSize, out UIntPtr outSize);
30 [DllImport(
"phasorrt.dll", CallingConvention = CallingConvention.Cdecl)]
31 public static extern bool compilePUL(
string script,
string moduleName,
32 byte[] buffer, UIntPtr bufferSize, out UIntPtr outSize);
static bool compilePHS(string script, string moduleName, string modulePath, byte[] buffer, UIntPtr bufferSize, out UIntPtr outSize)
static int exec(IntPtr vm, byte[] bytecode, UIntPtr bytecodeSize, string moduleName, int argc, string[] argv)