Exemple #1
0
        public static void JS_SetInterruptHandler(JSRuntime rt, JSInterruptHandler cb, IntPtr opaque)
        {
            var fn = Marshal.GetFunctionPointerForDelegate(cb);

            JS_SetInterruptHandler(rt, fn, opaque);
        }
Exemple #2
0
 public static extern void JS_FreeRuntime(JSRuntime rt);
Exemple #3
0
 public static extern unsafe void JS_ComputeMemoryUsage(JSRuntime rt, JSMemoryUsage *s);
Exemple #4
0
 private static extern unsafe void JS_SetInterruptHandler(JSRuntime rt, IntPtr cb, IntPtr opaque);
Exemple #5
0
 public static extern void JS_FreeAtomRT(JSRuntime rt, JSAtom v);
Exemple #6
0
 public static extern JSPayloadHeader JSB_FreePayloadRT(JSRuntime rt, JSValue val);
Exemple #7
0
 public static extern void JS_FreeValueRT(JSRuntime rt, JSValue v);
Exemple #8
0
 public static extern JSContext JS_NewContext(JSRuntime rt);
Exemple #9
0
 public static extern JS_BOOL JS_IsLiveObject(JSRuntime rt, JSValueConst obj);
Exemple #10
0
 public static extern JSValue JS_DupValueRT(JSRuntime rt, JSValueConst v);
Exemple #11
0
 public static extern int JS_ExecutePendingJob(JSRuntime rt, out JSContext pctx);
Exemple #12
0
 public static extern void JS_RunGC(JSRuntime rt);
Exemple #13
0
 public static extern int JS_IsRegisteredClass(JSRuntime rt, JSClassID class_id);
Exemple #14
0
 public static extern IntPtr JS_GetRuntimeOpaque(JSRuntime rt);
Exemple #15
0
 public static extern JSClassID __JSB_NewClass(JSRuntime rt, JSClassID class_id,
                                               [MarshalAs(UnmanagedType.LPStr)] string class_name, IntPtr finalizer);
Exemple #16
0
 public static extern void JS_SetRuntimeOpaque(JSRuntime rt, IntPtr opaque);
Exemple #17
0
 public static extern void JS_SetModuleLoaderFunc(JSRuntime rt, IntPtr module_normalize,
                                                  IntPtr module_loader, IntPtr opaque);
Exemple #18
0
 public static extern void JS_SetHostPromiseRejectionTracker(JSRuntime rt, IntPtr cb, IntPtr opaque);
Exemple #19
0
        public static void JS_SetHostPromiseRejectionTracker(JSRuntime rt, JSHostPromiseRejectionTracker cb, IntPtr opaque)
        {
            var fn = Marshal.GetFunctionPointerForDelegate(cb);

            JS_SetHostPromiseRejectionTracker(rt, fn, opaque);
        }