Esempio n. 1
0
 public override string ToString()
 {
     if (this.intptr_0 == IntPtr.Zero)
     {
         return(string.Empty);
     }
     return(BlinkBrowserPInvoke.jsToString(this.intptr_0, this.long_0).Utf8IntptrToString());
 }
Esempio n. 2
0
        public static Int64 JsString(IntPtr jsExecState, string str)
        {
            IntPtr strPtr = Marshal.StringToCoTaskMemAnsi(str);
            Int64  result = BlinkBrowserPInvoke.jsStringW(jsExecState, strPtr);

            Marshal.FreeCoTaskMem(strPtr);
            return(result);
        }
Esempio n. 3
0
        public static extern void wkeConfigure(IntPtr settings); // wkeSettings

        public static void wkeConfigureWrap(wkeSettings settings)
        {
            int    nSizeOfSettings = Marshal.SizeOf(settings);
            IntPtr intPtr          = Marshal.AllocHGlobal(nSizeOfSettings);

            Marshal.StructureToPtr(settings, intPtr, true);
            BlinkBrowserPInvoke.wkeConfigure(intPtr);
            Marshal.DestroyStructure(intPtr, typeof(wkeSettings));
        }
Esempio n. 4
0
 public int ToInt()
 {
     return(BlinkBrowserPInvoke.jsToInt(this.intptr_0, this.long_0));
 }
Esempio n. 5
0
 public float ToFloat()
 {
     return(BlinkBrowserPInvoke.jsToFloat(this.intptr_0, this.long_0));
 }
Esempio n. 6
0
 public double ToDouble()
 {
     return(BlinkBrowserPInvoke.jsToDouble(this.intptr_0, this.long_0));
 }
Esempio n. 7
0
 public bool ToBool()
 {
     return(BlinkBrowserPInvoke.jsToBoolean(this.intptr_0, this.long_0));
 }
Esempio n. 8
0
 public static Int64 JsUndefined(IntPtr jsExecState)
 {
     return(BlinkBrowserPInvoke.jsUndefined(jsExecState));
 }
Esempio n. 9
0
 public static Int64 JsTrue(IntPtr jsExecState)
 {
     return(BlinkBrowserPInvoke.jsTrue(jsExecState));
 }
Esempio n. 10
0
 public static Int64 JsInt(IntPtr jsExecState, int n)
 {
     return(BlinkBrowserPInvoke.jsInt(jsExecState, n));
 }
Esempio n. 11
0
 public static Int64 JsFloat(IntPtr jsExecState, float f)
 {
     return(BlinkBrowserPInvoke.jsFloat(jsExecState, f));
 }
Esempio n. 12
0
 public static Int64 JsDouble(IntPtr jsExecState, double d)
 {
     return(BlinkBrowserPInvoke.jsDouble(jsExecState, d));
 }
Esempio n. 13
0
 public static int ArgCount(IntPtr jsExecState)
 {
     return(BlinkBrowserPInvoke.jsArgCount(jsExecState));
 }
Esempio n. 14
0
 public JsValue(IntPtr jsExecState, int argIndex)
 {
     this.intptr_0 = jsExecState;
     this.long_0   = BlinkBrowserPInvoke.jsArg(this.intptr_0, argIndex);
 }