Skip to main content

Crate libquickjs_sys

Crate libquickjs_sys 

Source
Expand description

FFI Bindings for quickjs, a Javascript engine. See the quickjs crate for a high-level wrapper.

Structs§

JSCFunctionListEntry
JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1
JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2
JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3
JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4
JSClass
JSClassDef
JSClassExoticMethods
JSContext
JSGCObjectHeader
JSMallocFunctions
JSMallocState
JSMemoryUsage
JSModuleDef
JSObject
JSPropertyDescriptor
JSPropertyEnum
JSRefCountHeader
JSRuntime
JSSharedArrayBufferFunctions
JSValue
_G_fpos64_t
_G_fpos_t
_IO_FILE
_IO_codecvt
_IO_marker
_IO_wide_data
__fsid_t
__mbstate_t
__va_list_tag

Constants§

BUFSIZ
EOF
FILENAME_MAX
FOPEN_MAX
INT8_MAX
INT8_MIN
INT16_MAX
INT16_MIN
INT32_MAX
INT32_MIN
INTPTR_MAX
INTPTR_MIN
INT_FAST8_MAX
INT_FAST8_MIN
INT_FAST16_MAX
INT_FAST16_MIN
INT_FAST32_MAX
INT_FAST32_MIN
INT_LEAST8_MAX
INT_LEAST8_MIN
INT_LEAST16_MAX
INT_LEAST16_MIN
INT_LEAST32_MAX
INT_LEAST32_MIN
JSCFunctionEnum_JS_CFUNC_constructor
JSCFunctionEnum_JS_CFUNC_constructor_magic
JSCFunctionEnum_JS_CFUNC_constructor_or_func
JSCFunctionEnum_JS_CFUNC_constructor_or_func_magic
JSCFunctionEnum_JS_CFUNC_f_f
JSCFunctionEnum_JS_CFUNC_f_f_f
JSCFunctionEnum_JS_CFUNC_generic
JSCFunctionEnum_JS_CFUNC_generic_magic
JSCFunctionEnum_JS_CFUNC_getter
JSCFunctionEnum_JS_CFUNC_getter_magic
JSCFunctionEnum_JS_CFUNC_iterator_next
JSCFunctionEnum_JS_CFUNC_setter
JSCFunctionEnum_JS_CFUNC_setter_magic
JSPromiseStateEnum_JS_PROMISE_FULFILLED
JSPromiseStateEnum_JS_PROMISE_PENDING
JSPromiseStateEnum_JS_PROMISE_REJECTED
JS_ATOM_NULL
JS_CALL_FLAG_CONSTRUCTOR
JS_DEFAULT_STACK_SIZE
JS_DEF_ALIAS
JS_DEF_CFUNC
JS_DEF_CGETSET
JS_DEF_CGETSET_MAGIC
JS_DEF_OBJECT
JS_DEF_PROP_DOUBLE
JS_DEF_PROP_INT32
JS_DEF_PROP_INT64
JS_DEF_PROP_STRING
JS_DEF_PROP_UNDEFINED
JS_EVAL_FLAG_ASYNC
JS_EVAL_FLAG_BACKTRACE_BARRIER
JS_EVAL_FLAG_COMPILE_ONLY
JS_EVAL_FLAG_STRICT
JS_EVAL_FLAG_STRIP
JS_EVAL_TYPE_DIRECT
JS_EVAL_TYPE_GLOBAL
JS_EVAL_TYPE_INDIRECT
JS_EVAL_TYPE_MASK
JS_EVAL_TYPE_MODULE
JS_GPN_ENUM_ONLY
JS_GPN_PRIVATE_MASK
JS_GPN_SET_ENUM
JS_GPN_STRING_MASK
JS_GPN_SYMBOL_MASK
JS_PARSE_JSON_EXT
JS_PROP_AUTOINIT
JS_PROP_CONFIGURABLE
JS_PROP_C_W_E
JS_PROP_ENUMERABLE
JS_PROP_GETSET
JS_PROP_HAS_CONFIGURABLE
JS_PROP_HAS_ENUMERABLE
JS_PROP_HAS_GET
JS_PROP_HAS_SET
JS_PROP_HAS_SHIFT
JS_PROP_HAS_VALUE
JS_PROP_HAS_WRITABLE
JS_PROP_LENGTH
JS_PROP_NORMAL
JS_PROP_NO_ADD
JS_PROP_NO_EXOTIC
JS_PROP_THROW
JS_PROP_THROW_STRICT
JS_PROP_TMASK
JS_PROP_VARREF
JS_PROP_WRITABLE
JS_READ_OBJ_BYTECODE
JS_READ_OBJ_REFERENCE
JS_READ_OBJ_ROM_DATA
JS_READ_OBJ_SAB
JS_TAG_BIG_DECIMAL
JS_TAG_BIG_FLOAT
JS_TAG_BIG_INT
JS_TAG_BOOL
JS_TAG_CATCH_OFFSET
JS_TAG_EXCEPTION
JS_TAG_FIRST
JS_TAG_FLOAT64
JS_TAG_FUNCTION_BYTECODE
JS_TAG_INT
JS_TAG_MODULE
JS_TAG_NULL
JS_TAG_OBJECT
JS_TAG_STRING
JS_TAG_SYMBOL
JS_TAG_UNDEFINED
JS_TAG_UNINITIALIZED
JS_WRITE_OBJ_BSWAP
JS_WRITE_OBJ_BYTECODE
JS_WRITE_OBJ_REFERENCE
JS_WRITE_OBJ_SAB
L_ctermid
L_tmpnam
PTRDIFF_MAX
PTRDIFF_MIN
P_tmpdir
SEEK_CUR
SEEK_END
SEEK_SET
SIG_ATOMIC_MAX
SIG_ATOMIC_MIN
SIZE_MAX
TMP_MAX
UINT8_MAX
UINT16_MAX
UINT32_MAX
UINTPTR_MAX
UINT_FAST8_MAX
UINT_FAST16_MAX
UINT_FAST32_MAX
UINT_LEAST8_MAX
UINT_LEAST16_MAX
UINT_LEAST32_MAX
WINT_MAX
WINT_MIN
_ATFILE_SOURCE
_BITS_STDINT_INTN_H
_BITS_STDINT_UINTN_H
_BITS_STDIO_LIM_H
_BITS_TIME64_H
_BITS_TYPESIZES_H
_BITS_TYPES_H
_BITS_WCHAR_H
_DEFAULT_SOURCE
_FEATURES_H
_IOFBF
_IOLBF
_IONBF
_IO_EOF_SEEN
_IO_ERR_SEEN
_IO_USER_LOCK
_POSIX_C_SOURCE
_POSIX_SOURCE
_STDC_PREDEF_H
_STDINT_H
_STDIO_H
_SYS_CDEFS_H
__FD_SETSIZE
__FILE_defined
__GLIBC_MINOR__
__GLIBC_USE_DEPRECATED_GETS
__GLIBC_USE_DEPRECATED_SCANF
__GLIBC_USE_IEC_60559_BFP_EXT
__GLIBC_USE_IEC_60559_BFP_EXT_C2X
__GLIBC_USE_IEC_60559_EXT
__GLIBC_USE_IEC_60559_FUNCS_EXT
__GLIBC_USE_IEC_60559_FUNCS_EXT_C2X
__GLIBC_USE_IEC_60559_TYPES_EXT
__GLIBC_USE_ISOC2X
__GLIBC_USE_LIB_EXT2
__GLIBC__
__GNUC_VA_LIST
__GNU_LIBRARY__
__HAVE_DISTINCT_FLOAT16
__HAVE_DISTINCT_FLOAT32
__HAVE_DISTINCT_FLOAT64
__HAVE_DISTINCT_FLOAT32X
__HAVE_DISTINCT_FLOAT64X
__HAVE_DISTINCT_FLOAT128
__HAVE_DISTINCT_FLOAT128X
__HAVE_FLOAT16
__HAVE_FLOAT32
__HAVE_FLOAT64
__HAVE_FLOAT32X
__HAVE_FLOAT64X
__HAVE_FLOAT64X_LONG_DOUBLE
__HAVE_FLOAT128
__HAVE_FLOAT128X
__HAVE_FLOATN_NOT_TYPEDEF
__HAVE_GENERIC_SELECTION
__INO_T_MATCHES_INO64_T
__KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64
__LDOUBLE_REDIRECTS_TO_FLOAT128_ABI
__OFF_T_MATCHES_OFF64_T
__RLIM_T_MATCHES_RLIM64_T
__STATFS_MATCHES_STATFS64
__STDC_IEC_559_COMPLEX__
__STDC_IEC_559__
__STDC_IEC_60559_BFP__
__STDC_IEC_60559_COMPLEX__
__STDC_ISO_10646__
__SYSCALL_WORDSIZE
__TIMESIZE
__USE_ATFILE
__USE_FORTIFY_LEVEL
__USE_ISOC11
__USE_ISOC95
__USE_ISOC99
__USE_MISC
__USE_POSIX
__USE_POSIX2
__USE_POSIX199309
__USE_POSIX199506
__USE_POSIX_IMPLICITLY
__USE_XOPEN2K
__USE_XOPEN2K8
__WORDSIZE
__WORDSIZE_TIME64_COMPAT32
____FILE_defined
_____fpos64_t_defined
_____fpos_t_defined
____mbstate_t_defined
__glibc_c99_flexarr_available
__struct_FILE_defined

Statics§

stderr⚠
stdin⚠
stdout⚠

Functions§

JS_AddIntrinsicBaseObjects⚠
JS_AddIntrinsicBigDecimal⚠
JS_AddIntrinsicBigFloat⚠
JS_AddIntrinsicBigInt⚠
JS_AddIntrinsicDate⚠
JS_AddIntrinsicEval⚠
JS_AddIntrinsicJSON⚠
JS_AddIntrinsicMapSet⚠
JS_AddIntrinsicOperators⚠
JS_AddIntrinsicPromise⚠
JS_AddIntrinsicProxy⚠
JS_AddIntrinsicRegExp⚠
JS_AddIntrinsicRegExpCompiler⚠
JS_AddIntrinsicStringNormalize⚠
JS_AddIntrinsicTypedArrays⚠
JS_AddModuleExport⚠
JS_AddModuleExportList⚠
JS_AtomToCString⚠
JS_AtomToString⚠
JS_AtomToValue⚠
JS_Call⚠
JS_CallConstructor⚠
JS_CallConstructor2⚠
JS_ComputeMemoryUsage⚠
JS_DefineProperty⚠
JS_DefinePropertyGetSet⚠
JS_DefinePropertyValue⚠
JS_DefinePropertyValueStr⚠
JS_DefinePropertyValueUint32⚠
JS_DeleteProperty⚠
JS_DetachArrayBuffer⚠
JS_DetectModule⚠
JS_DumpMemoryUsage⚠
JS_DupAtom⚠
JS_DupContext⚠
JS_DupValue⚠
Increment the refcount of this value
JS_DupValueRT⚠
Increment the refcount of this value
JS_EnableBignumExt⚠
JS_EnqueueJob⚠
JS_Eval⚠
JS_EvalFunction⚠
JS_EvalThis⚠
JS_ExecutePendingJob⚠
JS_FreeAtom⚠
JS_FreeAtomRT⚠
JS_FreeCString⚠
JS_FreeContext⚠
JS_FreeRuntime⚠
JS_FreeValue⚠
Decrement the refcount of this value
JS_FreeValueRT⚠
Decrement the refcount of this value
JS_GetArrayBuffer⚠
JS_GetClassProto⚠
JS_GetContextOpaque⚠
JS_GetException⚠
JS_GetGlobalObject⚠
JS_GetImportMeta⚠
JS_GetModuleName⚠
JS_GetOpaque⚠
JS_GetOpaque2⚠
JS_GetOwnProperty⚠
JS_GetOwnPropertyNames⚠
JS_GetPropertyInternal⚠
JS_GetPropertyStr⚠
JS_GetPropertyUint32⚠
JS_GetPrototype⚠
JS_GetRuntime⚠
JS_GetRuntimeOpaque⚠
JS_GetScriptOrModuleName⚠
JS_GetTypedArrayBuffer⚠
JS_HasProperty⚠
JS_Invoke⚠
JS_IsArray⚠
JS_IsBigDecimal⚠
check if a JSValue is a BigDecimal
JS_IsBigFloat⚠
check if a JSValue is a BigFloat
JS_IsBigInt⚠
check if a JSValue is a BigInt
JS_IsBool⚠
check if a JSValue is a Boolean
JS_IsConstructor⚠
JS_IsError⚠
JS_IsException⚠
check if a JSValue is an Exception
JS_IsExtensible⚠
JS_IsFunction⚠
JS_IsInstanceOf⚠
JS_IsJobPending⚠
JS_IsLiveObject⚠
JS_IsNull⚠
check if a JSValue is null
JS_IsNumber⚠
check if a JSValue is a Number
JS_IsObject⚠
check if a JSValue is an Object
JS_IsRegisteredClass⚠
JS_IsString⚠
check if a JSValue is a String
JS_IsSymbol⚠
check if a JSValue is a Symbol
JS_IsUndefined⚠
check if a JSValue is Undefined
JS_IsUninitialized⚠
check if a JSValue is initialized
JS_JSONStringify⚠
JS_LoadModule⚠
JS_MarkValue⚠
JS_NewArray⚠
JS_NewArrayBuffer⚠
JS_NewArrayBufferCopy⚠
JS_NewAtom⚠
JS_NewAtomLen⚠
JS_NewAtomString⚠
JS_NewAtomUInt32⚠
JS_NewBigInt64⚠
JS_NewBigUint64⚠
JS_NewBool⚠
create a new boolean value
JS_NewCFunction⚠
create a new Function based on a JSCFunction
JS_NewCFunction2⚠
JS_NewCFunctionData⚠
JS_NewCFunctionMagic⚠
create a new Function based on a JSCFunction
JS_NewCModule⚠
JS_NewClass⚠
JS_NewClassID⚠
JS_NewContext⚠
JS_NewContextRaw⚠
JS_NewError⚠
JS_NewFloat64⚠
create a new f64 value, please note that if the passed f64 fits in a i32 this will return a value with flag 0 (i32)
JS_NewInt32⚠
create a new int32 value
JS_NewObject⚠
JS_NewObjectClass⚠
JS_NewObjectProto⚠
JS_NewObjectProtoClass⚠
JS_NewPromiseCapability⚠
JS_NewRuntime⚠
JS_NewRuntime2⚠
JS_NewString⚠
JS_NewStringLen⚠
JS_ParseJSON⚠
JS_ParseJSON2⚠
JS_PreventExtensions⚠
JS_PromiseResult⚠
JS_PromiseState⚠
JS_ReadObject⚠
JS_ResetUncatchableError⚠
JS_ResolveModule⚠
JS_RunGC⚠
JS_SetCanBlock⚠
JS_SetClassProto⚠
JS_SetConstructor⚠
JS_SetConstructorBit⚠
JS_SetContextOpaque⚠
JS_SetGCThreshold⚠
JS_SetHostPromiseRejectionTracker⚠
JS_SetInterruptHandler⚠
JS_SetIsHTMLDDA⚠
JS_SetMaxStackSize⚠
JS_SetMemoryLimit⚠
JS_SetModuleExport⚠
JS_SetModuleExportList⚠
JS_SetModuleLoaderFunc⚠
JS_SetOpaque⚠
JS_SetProperty⚠
set a property of an object identified by a JSAtom
JS_SetPropertyFunctionList⚠
JS_SetPropertyInt64⚠
JS_SetPropertyInternal⚠
JS_SetPropertyStr⚠
JS_SetPropertyUint32⚠
JS_SetPrototype⚠
JS_SetRuntimeInfo⚠
JS_SetRuntimeOpaque⚠
JS_SetSharedArrayBufferFunctions⚠
JS_Throw⚠
JS_ThrowInternalError⚠
JS_ThrowOutOfMemory⚠
JS_ThrowRangeError⚠
JS_ThrowReferenceError⚠
JS_ThrowSyntaxError⚠
JS_ThrowTypeError⚠
JS_ToBigInt64⚠
JS_ToBool⚠
JS_ToCStringLen2⚠
JS_ToFloat64⚠
JS_ToIndex⚠
JS_ToInt32⚠
JS_ToInt64⚠
JS_ToInt64Ext⚠
JS_ToPropertyKey⚠
JS_ToString⚠
JS_ToUint32⚠
get a u32 value from a JSValue
JS_UpdateStackTop⚠
JS_VALUE_GET_FLOAT64⚠
get a f64 value from a JSValue
JS_VALUE_GET_NORM_TAG⚠
same as JS_VALUE_GET_TAG, but return JS_TAG_FLOAT64 with NaN boxing
JS_VALUE_IS_NAN⚠
check if a JSValue is a NaN value
JS_ValueGetTag⚠
JS_ValueToAtom⚠
JS_WriteObject⚠
JS_WriteObject2⚠
__JS_FreeValue⚠
__JS_FreeValueRT⚠
__getdelim⚠
__overflow⚠
__uflow⚠
clearerr⚠
clearerr_unlocked⚠
ctermid⚠
dprintf⚠
fclose⚠
fdopen⚠
feof⚠
feof_unlocked⚠
ferror⚠
ferror_unlocked⚠
fflush⚠
fflush_unlocked⚠
fgetc⚠
fgetc_unlocked⚠
fgetpos⚠
fgets⚠
fileno⚠
fileno_unlocked⚠
flockfile⚠
fmemopen⚠
fopen⚠
fprintf⚠
fputc⚠
fputc_unlocked⚠
fputs⚠
fread⚠
fread_unlocked⚠
freopen⚠
fscanf⚠
fscanf1⚠
fseek⚠
fseeko⚠
fsetpos⚠
ftell⚠
ftello⚠
ftrylockfile⚠
funlockfile⚠
fwrite⚠
fwrite_unlocked⚠
getc⚠
getc_unlocked⚠
getchar⚠
getchar_unlocked⚠
getdelim⚠
getline⚠
getw⚠
js_free⚠
js_free_rt⚠
js_malloc⚠
js_malloc_rt⚠
js_malloc_usable_size⚠
js_malloc_usable_size_rt⚠
js_mallocz⚠
js_mallocz_rt⚠
js_realloc⚠
js_realloc2⚠
js_realloc_rt⚠
js_strdup⚠
js_string_codePointRange⚠
js_strndup⚠
open_memstream⚠
pclose⚠
perror⚠
popen⚠
printf⚠
putc⚠
putc_unlocked⚠
putchar⚠
putchar_unlocked⚠
puts⚠
putw⚠
remove⚠
rename⚠
renameat⚠
rewind⚠
scanf⚠
scanf1⚠
setbuf⚠
setbuffer⚠
setlinebuf⚠
setvbuf⚠
snprintf⚠
sprintf⚠
sscanf⚠
sscanf1⚠
tempnam⚠
tmpfile⚠
tmpnam⚠
tmpnam_r⚠
ungetc⚠
vdprintf⚠
vfprintf⚠
vfscanf⚠
vfscanf1⚠
vprintf⚠
vscanf⚠
vscanf1⚠
vsnprintf⚠
vsprintf⚠
vsscanf⚠
vsscanf1⚠

Type Aliases§

FILE
JSAtom
JSCFunction
JSCFunctionData
JSCFunctionEnum
JSCFunctionMagic
JSClassCall
JSClassFinalizer
JSClassGCMark
JSClassID
JSFreeArrayBufferDataFunc
JSHostPromiseRejectionTracker
JSInterruptHandler
JSJobFunc
JSModuleInitFunc
JSModuleLoaderFunc
JSModuleNormalizeFunc
JSPromiseStateEnum
JS_MarkFunc
_Float32
_Float64
_Float32x
_Float64x
_IO_lock_t
__FILE
__blkcnt64_t
__blkcnt_t
__blksize_t
__builtin_va_list
__caddr_t
__clock_t
__clockid_t
__daddr_t
__dev_t
__fpos64_t
__fpos_t
__fsblkcnt64_t
__fsblkcnt_t
__fsfilcnt64_t
__fsfilcnt_t
__fsword_t
__gid_t
__gnuc_va_list
__id_t
__ino64_t
__ino_t
__int8_t
__int16_t
__int32_t
__int64_t
__int_least8_t
__int_least16_t
__int_least32_t
__int_least64_t
__intmax_t
__intptr_t
__key_t
__loff_t
__mode_t
__nlink_t
__off64_t
__off_t
__pid_t
__quad_t
__rlim64_t
__rlim_t
__sig_atomic_t
__socklen_t
__ssize_t
__suseconds64_t
__suseconds_t
__syscall_slong_t
__syscall_ulong_t
__time_t
__timer_t
__u_char
__u_int
__u_long
__u_quad_t
__u_short
__uid_t
__uint8_t
__uint16_t
__uint32_t
__uint64_t
__uint_least8_t
__uint_least16_t
__uint_least32_t
__uint_least64_t
__uintmax_t
__useconds_t
_bindgen_ty_1
fpos_t
int_fast8_t
int_fast16_t
int_fast32_t
int_fast64_t
int_least8_t
int_least16_t
int_least32_t
int_least64_t
intmax_t
off_t
uint_fast8_t
uint_fast16_t
uint_fast32_t
uint_fast64_t
uint_least8_t
uint_least16_t
uint_least32_t
uint_least64_t
uintmax_t
va_list

Unions§

JSCFunctionListEntry__bindgen_ty_1
JSCFunctionType
JSValueUnion
__mbstate_t__bindgen_ty_1