示例#1
0
 public static extern void StringRelease([NativeTypeName("JSStringRef")] JsString * @string);
示例#2
0
 public static extern UIntPtr StringGetLength([NativeTypeName("JSStringRef")] JsString * @string);
示例#3
0
 public static extern void GlobalContextSetName([NativeTypeName("JSGlobalContextRef")] JsContext *ctx, [NativeTypeName("JSStringRef")] JsString *name);
示例#4
0
 public static extern JsString *StringRetain([NativeTypeName("JSStringRef")] JsString * @string);
示例#5
0
 public static extern OneByteBoolean StringIsEqualToUtf8CString([NativeTypeName("JSStringRef")] JsString *a, [NativeTypeName("const char *")] sbyte *b);
示例#6
0
 public static extern JsValue *JsValueMakeSymbol([NativeTypeName("JSContextRef")] JsContext *ctx, [NativeTypeName("JSStringRef")] JsString *description);
示例#7
0
 public static extern JsValue *JsObjectGetProperty([NativeTypeName("JSContextRef")] JsContext *ctx, [NativeTypeName("JSObjectRef")] JsValue * @object, [NativeTypeName("JSStringRef")] JsString *propertyName,
                                                   [NativeTypeName("JSValueRef *")] JsValue **exception);
示例#8
0
 public static extern UIntPtr StringGetUtf8CString([NativeTypeName("JSStringRef")] JsString * @string, [NativeTypeName("char *")] sbyte *buffer, [NativeTypeName("size_t")] UIntPtr bufferSize);
示例#9
0
 public static extern JsValue *JsObjectMakeFunction([NativeTypeName("JSContextRef")] JsContext *ctx, [NativeTypeName("JSStringRef")] JsString *name, [NativeTypeName("unsigned int")] uint parameterCount,
                                                    [NativeTypeName("const JSStringRef []")]
                                                    JsString **parameterNames, [NativeTypeName("JSStringRef")] JsString *body, [NativeTypeName("JSStringRef")] JsString *sourceUrl, int startingLineNumber, [NativeTypeName("JSValueRef *")] JsValue **exception);
示例#10
0
 public static extern OneByteBoolean JsObjectHasProperty([NativeTypeName("JSContextRef")] JsContext *ctx, [NativeTypeName("JSObjectRef")] JsValue * @object, [NativeTypeName("JSStringRef")] JsString *propertyName);
示例#11
0
 public static JsValue *JsObjectMakeFunctionWithCallback(JsContext *ctx, JsString *name, FnPtr <ObjectCallAsFunctionCallback> callAsFunction)
 => JsObjectMakeFunctionWithCallback(ctx, name, (IntPtr)callAsFunction);
示例#12
0
 private static extern JsValue *JsObjectMakeFunctionWithCallback([NativeTypeName("JSContextRef")] JsContext *ctx, [NativeTypeName("JSStringRef")] JsString *name,
                                                                 [NativeTypeName("JSObjectCallAsFunctionCallback")]
                                                                 IntPtr callAsFunction);
示例#13
0
 public static extern OneByteBoolean CheckScriptSyntax([NativeTypeName("JSContextRef")] JsContext *ctx, [NativeTypeName("JSStringRef")] JsString *script, [NativeTypeName("JSStringRef")] JsString *sourceUrl, int startingLineNumber,
                                                       [NativeTypeName("JSValueRef *")] JsValue **exception);
示例#14
0
 public static extern char *StringGetCharactersPtr([NativeTypeName("JSStringRef")] JsString * @string);
示例#15
0
 public static extern void JsObjectSetProperty([NativeTypeName("JSContextRef")] JsContext *ctx, [NativeTypeName("JSObjectRef")] JsValue * @object, [NativeTypeName("JSStringRef")] JsString *propertyName,
                                               [NativeTypeName("JSValueRef")] JsValue *value, [NativeTypeName("JSPropertyAttributes")]
                                               JsPropertyAttribute attributes, [NativeTypeName("JSValueRef *")] JsValue **exception);
示例#16
0
 public static extern UIntPtr StringGetMaximumUtf8CStringSize([NativeTypeName("JSStringRef")] JsString * @string);
示例#17
0
 public static extern OneByteBoolean JsObjectDeleteProperty([NativeTypeName("JSContextRef")] JsContext *ctx, [NativeTypeName("JSObjectRef")] JsValue * @object, [NativeTypeName("JSStringRef")] JsString *propertyName,
                                                            [NativeTypeName("JSValueRef *")] JsValue **exception);
示例#18
0
 public static extern OneByteBoolean StringIsEqual([NativeTypeName("JSStringRef")] JsString *a, [NativeTypeName("JSStringRef")] JsString *b);
示例#19
0
 public static extern void PropertyNameAccumulatorAddName([NativeTypeName("JSPropertyNameAccumulatorRef")]
                                                          JsPropertyNameAccumulator *accumulator, [NativeTypeName("JSStringRef")] JsString *propertyName);
示例#20
0
 public static extern JsValue *JsValueMakeString([NativeTypeName("JSContextRef")] JsContext *ctx, [NativeTypeName("JSStringRef")] JsString * @string);
示例#21
0
 public static extern JsValue *EvaluateScript([NativeTypeName("JSContextRef")] JsContext *ctx, [NativeTypeName("JSStringRef")] JsString *script, [NativeTypeName("JSObjectRef")] JsValue *thisObject,
                                              [NativeTypeName("JSStringRef")] JsString *sourceUrl, int startingLineNumber, [NativeTypeName("JSValueRef *")] JsValue **exception);