Example #1
0
 public static extern unsafe JSValue JS_NewArrayBufferCopy(JSContext ctx, byte *buf, size_t len);
Example #2
0
 public static extern unsafe IntPtr js_strndup(JSContext ctx, byte *s, size_t n);
Example #3
0
 public static extern IntPtr JS_GetArrayBuffer(JSContext ctx, out size_t psize, JSValueConst obj);
Example #4
0
 public static extern IntPtr JS_ToCStringLen2(JSContext ctx, out size_t len, [In] JSValue val,
                                              [MarshalAs(UnmanagedType.Bool)] bool cesu8);
Example #5
0
 public static IntPtr JS_ToCStringLen(JSContext ctx, out size_t len, JSValue val)
 {
     return(JS_ToCStringLen2(ctx, out len, val, false));
 }
Example #6
0
 public static extern unsafe JSValue JS_Eval(JSContext ctx, byte *input, size_t input_len, byte *filename, JSEvalFlags eval_flags);
Example #7
0
 public static extern unsafe JSValue JS_ReadObject(JSContext ctx, byte *buf, size_t buf_len, int flags);
Example #8
0
 public static extern IntPtr JS_WriteObject(JSContext ctx, out size_t psize, JSValueConst obj, int flags);
Example #9
0
 public static extern unsafe JSValue JS_ParseJSON(JSContext ctx, byte *buf, size_t buf_len, byte *filename);
Example #10
0
 public static extern unsafe JSAtom JS_NewAtomLen(JSContext ctx, byte *str, size_t len);