Phasor 3.3.0
Stack VM based Programming Language
Loading...
Searching...
No Matches
PhasorABI.cs
Go to the documentation of this file.
1using System;
2using System.Runtime.InteropServices;
3
4public static class PHASOR_INTERNAL_ABI_3_3_0 {
5 [DllImport("phasorrt.dll", CallingConvention = CallingConvention.Cdecl)]
6 public static extern int evaluatePHS(IntPtr vm, string script, string moduleName, string modulePath, bool verbose);
7
8 [DllImport("phasorrt.dll", CallingConvention = CallingConvention.Cdecl)]
9 public static extern int evaluatePUL(IntPtr vm, string script, string moduleName);
10
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);
13
14 [DllImport("phasorrt.dll", CallingConvention = CallingConvention.Cdecl)]
15 public static extern IntPtr createState();
16
17 [DllImport("phasorrt.dll", CallingConvention = CallingConvention.Cdecl)]
18 public static extern bool freeState(IntPtr vm);
19
20 [DllImport("phasorrt.dll", CallingConvention = CallingConvention.Cdecl)]
21 public static extern void initStdLib(IntPtr vm);
22
23 [DllImport("phasorrt.dll", CallingConvention = CallingConvention.Cdecl)]
24 public static extern bool resetState(IntPtr vm, bool resetFunctions, bool resetVariables);
25
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);
29
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);
33}
static bool resetState(IntPtr vm, bool resetFunctions, bool resetVariables)
static IntPtr createState()
static bool compilePHS(string script, string moduleName, string modulePath, byte[] buffer, UIntPtr bufferSize, out UIntPtr outSize)
static void initStdLib(IntPtr vm)
static int evaluatePUL(IntPtr vm, string script, string moduleName)
static int exec(IntPtr vm, byte[] bytecode, UIntPtr bytecodeSize, string moduleName, int argc, string[] argv)
static bool compilePUL(string script, string moduleName, byte[] buffer, UIntPtr bufferSize, out UIntPtr outSize)
static bool freeState(IntPtr vm)
static int evaluatePHS(IntPtr vm, string script, string moduleName, string modulePath, bool verbose)