Exemple #1
0
 public static extern IntPtr JS_ToCStringLen2(JSContext ctx, out size_t len, [In] JSValue val,
                                              [MarshalAs(UnmanagedType.Bool)] bool cesu8);
Exemple #2
0
 public static extern void JS_FreeValue(JSContext ctx, JSValue v);
Exemple #3
0
 public static extern void JS_FreeValueRT(JSRuntime rt, JSValue v);
Exemple #4
0
 public static extern int JS_ToInt32(JSContext ctx, out int pres, JSValue val);
Exemple #5
0
 public static extern JSValue JS_EvalFunction(JSContext ctx, JSValue fun_obj);
Exemple #6
0
 public static extern int JS_DefinePropertyValueStr(JSContext ctx, JSValueConst this_obj,
                                                    [MarshalAs(UnmanagedType.LPStr)] string prop,
                                                    JSValue val, JSPropFlags flags);
Exemple #7
0
 public static extern unsafe int JS_SetPropertyStr(JSContext ctx, [In] JSValueConst this_obj, byte *prop,
                                                   JSValue val);
Exemple #8
0
 public static extern int JS_SetPropertyUint32(JSContext ctx, JSValueConst this_obj, uint32_t idx, JSValue val);
Exemple #9
0
 public static extern int JS_SetPropertyInt64(JSContext ctx, JSValueConst this_obj, int64_t idx, JSValue val);
Exemple #10
0
 public static extern int JS_SetPropertyInternal(JSContext ctx, JSValueConst this_obj, JSAtom prop, JSValue val,
                                                 int flags);
Exemple #11
0
 public static int JS_SetProperty(JSContext ctx, JSValueConst this_obj, JSAtom prop, JSValue val)
 {
     return(JS_SetPropertyInternal(ctx, this_obj, prop, val, (int)JSPropFlags.JS_PROP_THROW));
 }
Exemple #12
0
 public static extern void JS_SetClassProto(JSContext ctx, JSClassID class_id, JSValue obj);
Exemple #13
0
 public static extern JSValue JS_Throw(JSContext ctx, JSValue obj);
Exemple #14
0
 public static extern int JS_DefinePropertyValue(JSContext ctx, JSValueConst this_obj,
                                                 JSAtom prop, JSValue val, JSPropFlags flags);
Exemple #15
0
 public static IntPtr JS_ToCStringLen(JSContext ctx, out size_t len, JSValue val)
 {
     return(JS_ToCStringLen2(ctx, out len, val, false));
 }
Exemple #16
0
 public static extern int JS_SetPropertyStr(JSContext ctx, [In] JSValueConst this_obj,
                                            [MarshalAs(UnmanagedType.LPStr)] string prop, JSValue val);
Exemple #17
0
 public bool Equals(JSValue other)
 {
     return(this == other);
 }
Exemple #18
0
 public static bool JS_VALUE_HAS_REF_COUNT(JSValue v)
 {
     return((ulong)v.tag >= unchecked ((ulong)JS_TAG_FIRST));
 }