Beispiel #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());
 }
Beispiel #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);
        }
Beispiel #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));
        }
Beispiel #4
0
 public int ToInt()
 {
     return(BlinkBrowserPInvoke.jsToInt(this.intptr_0, this.long_0));
 }
Beispiel #5
0
 public float ToFloat()
 {
     return(BlinkBrowserPInvoke.jsToFloat(this.intptr_0, this.long_0));
 }
Beispiel #6
0
 public double ToDouble()
 {
     return(BlinkBrowserPInvoke.jsToDouble(this.intptr_0, this.long_0));
 }
Beispiel #7
0
 public bool ToBool()
 {
     return(BlinkBrowserPInvoke.jsToBoolean(this.intptr_0, this.long_0));
 }
Beispiel #8
0
 public static Int64 JsUndefined(IntPtr jsExecState)
 {
     return(BlinkBrowserPInvoke.jsUndefined(jsExecState));
 }
Beispiel #9
0
 public static Int64 JsTrue(IntPtr jsExecState)
 {
     return(BlinkBrowserPInvoke.jsTrue(jsExecState));
 }
Beispiel #10
0
 public static Int64 JsInt(IntPtr jsExecState, int n)
 {
     return(BlinkBrowserPInvoke.jsInt(jsExecState, n));
 }
Beispiel #11
0
 public static Int64 JsFloat(IntPtr jsExecState, float f)
 {
     return(BlinkBrowserPInvoke.jsFloat(jsExecState, f));
 }
Beispiel #12
0
 public static Int64 JsDouble(IntPtr jsExecState, double d)
 {
     return(BlinkBrowserPInvoke.jsDouble(jsExecState, d));
 }
Beispiel #13
0
 public static int ArgCount(IntPtr jsExecState)
 {
     return(BlinkBrowserPInvoke.jsArgCount(jsExecState));
 }
Beispiel #14
0
 public JsValue(IntPtr jsExecState, int argIndex)
 {
     this.intptr_0 = jsExecState;
     this.long_0   = BlinkBrowserPInvoke.jsArg(this.intptr_0, argIndex);
 }