示例#1
0
文件: JSApi.cs 项目: shunfy/unity-jsb
 public static bool JS_IsObject(JSValueConst v)
 {
     return(v.tag == JS_TAG_OBJECT);
 }
示例#2
0
 public static extern int JS_SetPropertyInt64(JSContext ctx, JSValueConst this_obj, int64_t idx, JSValue val);
示例#3
0
 public static extern unsafe int JS_SetPropertyStr(JSContext ctx, [In] JSValueConst this_obj, byte *prop,
                                                   JSValue val);
示例#4
0
 public static extern void JS_SetConstructor(JSContext ctx, JSValueConst func_obj, JSValueConst proto);
示例#5
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));
 }
示例#6
0
 public static extern JS_BOOL JS_IsFunction(JSContext ctx, JSValueConst val);
示例#7
0
 public static extern JS_BOOL JS_SetConstructorBit(JSContext ctx, JSValueConst func_obj, JS_BOOL val);
示例#8
0
 public static extern JSValue JS_GetPropertyInternal(JSContext ctx, JSValueConst obj, JSAtom prop,
                                                     JSValueConst receiver, JS_BOOL throw_ref_error);
示例#9
0
 // 增引用, 需要 FreeValue
 public static JSValue JS_GetProperty(JSContext ctx, JSValueConst this_obj, JSAtom prop)
 {
     return(JS_GetPropertyInternal(ctx, this_obj, prop, this_obj, 0));
 }
示例#10
0
 public static extern int JS_IsInstanceOf(JSContext ctx, JSValueConst val, JSValueConst obj);
示例#11
0
 public static extern JSValue JS_GetPropertyUint32(JSContext ctx, JSValueConst this_obj, uint32_t idx);
示例#12
0
 public static extern IntPtr JS_GetArrayBuffer(JSContext ctx, out size_t psize, JSValueConst obj);
示例#13
0
文件: JSApi.cs 项目: shunfy/unity-jsb
 public static extern JSValue JS_DupValueRT(JSRuntime rt, JSValueConst v);
示例#14
0
文件: JSApi.cs 项目: shunfy/unity-jsb
 public static extern JSValue JS_DupValue(JSContext ctx, JSValueConst v);
示例#15
0
 public static extern JSValue JS_NewObjectProtoClass(JSContext ctx, JSValueConst proto, JSClassID class_id);
示例#16
0
 public static extern unsafe int JS_GetOwnProperty(JSContext ctx, [In] JSPropertyDescriptor *desc, JSValueConst obj, JSAtom prop);
示例#17
0
 public static extern JSValue JS_NewObjectProto(JSContext ctx, JSValueConst proto);
示例#18
0
 public static extern JSValue JSB_NewPropertyObjectStr(JSContext ctx, JSValueConst this_obj,
                                                       [MarshalAs(UnmanagedType.LPStr)] string name, JSPropFlags flags);
示例#19
0
 public static extern JS_BOOL JS_IsConstructor(JSContext ctx, JSValueConst val);
示例#20
0
 public static extern JSValue JSB_NewPropertyObject(JSContext ctx, JSValueConst this_obj,
                                                    JSAtom name, JSPropFlags flags);
示例#21
0
 public static extern int JS_IsArray(JSContext ctx, JSValueConst val);
示例#22
0
 public static extern JSValue JS_GetPropertyStr(JSContext ctx, JSValueConst this_obj,
                                                [MarshalAs(UnmanagedType.LPStr)] string prop);
示例#23
0
 public static extern int JS_SetPropertyInternal(JSContext ctx, JSValueConst this_obj, JSAtom prop, JSValue val,
                                                 int flags);
示例#24
0
 public static extern int JS_DefinePropertyValueStr(JSContext ctx, JSValueConst this_obj,
                                                    [MarshalAs(UnmanagedType.LPStr)] string prop,
                                                    JSValue val, JSPropFlags flags);
示例#25
0
 public static extern int JS_SetPropertyUint32(JSContext ctx, JSValueConst this_obj, uint32_t idx, JSValue val);
示例#26
0
 public static extern int JS_DefinePropertyValue(JSContext ctx, JSValueConst this_obj,
                                                 JSAtom prop, JSValue val, JSPropFlags flags);
示例#27
0
 public static extern int JS_SetPropertyStr(JSContext ctx, [In] JSValueConst this_obj,
                                            [MarshalAs(UnmanagedType.LPStr)] string prop, JSValue val);
示例#28
0
 public static extern JSAtom JS_ValueToAtom(JSContext ctx, JSValueConst val);
示例#29
0
 public static extern int JS_HasProperty(JSContext ctx, JSValueConst this_obj, JSAtom prop);
示例#30
0
文件: JSApi.cs 项目: shunfy/unity-jsb
 public static bool JS_IsSymbol(JSValueConst v)
 {
     return(v.tag == JS_TAG_SYMBOL);
 }