quickjs-emscripten • quickjs-emscripten-core • Readme | Exports
quickjs-emscripten / quickjs-emscripten-core / QuickJSFFI
Low-level FFI bindings to QuickJS's Emscripten module. See instead QuickJSContext, the public Javascript interface exposed by this library.
- Unstable
- Properties
- DEBUG
- QTS_ArgvGetJSValueConstPointer
- QTS_BuildIsAsyncify
- QTS_BuildIsDebug
- QTS_BuildIsSanitizeLeak
- QTS_Call
- QTS_DefineProp
- QTS_Dump
- QTS_DupValuePointer
- QTS_Eval
- QTS_ExecutePendingJob
- QTS_FreeCString
- QTS_FreeContext
- QTS_FreeRuntime
- QTS_FreeValuePointer
- QTS_FreeValuePointerRuntime
- QTS_FreeVoidPointer
- QTS_GetArrayBuffer
- QTS_GetArrayBufferLength
- QTS_GetDebugLogEnabled
- QTS_GetFalse
- QTS_GetFloat64
- QTS_GetGlobalObject
- QTS_GetLength
- QTS_GetModuleNamespace
- QTS_GetNull
- QTS_GetOwnPropertyNames
- QTS_GetProp
- QTS_GetPropNumber
- QTS_GetString
- QTS_GetSymbolDescriptionOrKey
- QTS_GetTrue
- QTS_GetUndefined
- QTS_IsEqual
- QTS_IsGlobalSymbol
- QTS_IsJobPending
- QTS_NewArray
- QTS_NewArrayBuffer
- QTS_NewContext
- QTS_NewError
- QTS_NewFloat64
- QTS_NewFunction
- QTS_NewObject
- QTS_NewObjectProto
- QTS_NewPromiseCapability
- QTS_NewRuntime
- QTS_NewString
- QTS_NewSymbol
- QTS_PromiseResult
- QTS_PromiseState
- QTS_RecoverableLeakCheck
- QTS_ResolveException
- QTS_RuntimeComputeMemoryUsage
- QTS_RuntimeDisableInterruptHandler
- QTS_RuntimeDisableModuleLoader
- QTS_RuntimeDumpMemoryUsage
- QTS_RuntimeEnableInterruptHandler
- QTS_RuntimeEnableModuleLoader
- QTS_RuntimeSetMaxStackSize
- QTS_RuntimeSetMemoryLimit
- QTS_SetDebugLogEnabled
- QTS_SetProp
- QTS_TestStringArg
- QTS_Throw
- QTS_Typeof
- QTS_bjson_decode
- QTS_bjson_encode
The FFI interface is considered private and may change.
readonly
DEBUG:boolean
Set at compile time.
packages/quickjs-ffi-types/src/ffi.ts:38
QTS_ArgvGetJSValueConstPointer: (
argv
,index
) =>JSValueConstPointer
• argv: JSValuePointer
| JSValueConstPointer
• index: number
packages/quickjs-ffi-types/src/ffi.ts:198
QTS_BuildIsAsyncify: () =>
number
number
packages/quickjs-ffi-types/src/ffi.ts:196
QTS_BuildIsDebug: () =>
number
number
packages/quickjs-ffi-types/src/ffi.ts:195
QTS_BuildIsSanitizeLeak: () =>
number
number
packages/quickjs-ffi-types/src/ffi.ts:46
QTS_Call: (
ctx
,func_obj
,this_obj
,argc
,argv_ptrs
) =>JSValuePointer
• ctx: JSContextPointer
• func_obj: JSValuePointer
| JSValueConstPointer
• this_obj: JSValuePointer
| JSValueConstPointer
• argc: number
• argv_ptrs: JSValueConstPointerPointer
packages/quickjs-ffi-types/src/ffi.ts:140
QTS_DefineProp: (
ctx
,this_val
,prop_name
,prop_value
,get
,set
,configurable
,enumerable
,has_value
) =>void
• ctx: JSContextPointer
• this_val: JSValuePointer
| JSValueConstPointer
• prop_name: JSValuePointer
| JSValueConstPointer
• prop_value: JSValuePointer
| JSValueConstPointer
• get: JSValuePointer
| JSValueConstPointer
• set: JSValuePointer
| JSValueConstPointer
• configurable: boolean
• enumerable: boolean
• has_value: boolean
void
packages/quickjs-ffi-types/src/ffi.ts:122
QTS_Dump: (
ctx
,obj
) =>JSBorrowedCharPointer
• ctx: JSContextPointer
• obj: JSValuePointer
| JSValueConstPointer
packages/quickjs-ffi-types/src/ffi.ts:148
QTS_DupValuePointer: (
ctx
,val
) =>JSValuePointer
• ctx: JSContextPointer
• val: JSValuePointer
| JSValueConstPointer
packages/quickjs-ffi-types/src/ffi.ts:60
QTS_Eval: (
ctx
,js_code
,js_code_length
,filename
,detectModule
,evalFlags
) =>JSValuePointer
• ctx: JSContextPointer
• js_code: BorrowedHeapCharPointer
• js_code_length: number
• filename: string
• detectModule: EvalDetectModule
• evalFlags: EvalFlags
packages/quickjs-ffi-types/src/ffi.ts:152
QTS_ExecutePendingJob: (
rt
,maxJobsToExecute
,lastJobContext
) =>JSValuePointer
• rt: JSRuntimePointer
• maxJobsToExecute: number
• lastJobContext: JSContextPointerPointer
packages/quickjs-ffi-types/src/ffi.ts:101
QTS_FreeCString: (
ctx
,str
) =>void
• ctx: JSContextPointer
• str: JSBorrowedCharPointer
void
packages/quickjs-ffi-types/src/ffi.ts:59
QTS_FreeContext: (
ctx
) =>void
• ctx: JSContextPointer
void
packages/quickjs-ffi-types/src/ffi.ts:55
QTS_FreeRuntime: (
rt
) =>void
• rt: JSRuntimePointer
void
packages/quickjs-ffi-types/src/ffi.ts:53
QTS_FreeValuePointer: (
ctx
,value
) =>void
• ctx: JSContextPointer
• value: JSValuePointer
void
packages/quickjs-ffi-types/src/ffi.ts:56
QTS_FreeValuePointerRuntime: (
rt
,value
) =>void
• rt: JSRuntimePointer
• value: JSValuePointer
void
packages/quickjs-ffi-types/src/ffi.ts:57
QTS_FreeVoidPointer: (
ctx
,ptr
) =>void
• ctx: JSContextPointer
• ptr: JSVoidPointer
void
packages/quickjs-ffi-types/src/ffi.ts:58
QTS_GetArrayBuffer: (
ctx
,data
) =>JSVoidPointer
• ctx: JSContextPointer
• data: JSValuePointer
| JSValueConstPointer
packages/quickjs-ffi-types/src/ffi.ts:82
QTS_GetArrayBufferLength: (
ctx
,data
) =>number
• ctx: JSContextPointer
• data: JSValuePointer
| JSValueConstPointer
number
packages/quickjs-ffi-types/src/ffi.ts:86
QTS_GetDebugLogEnabled: (
rt
) =>number
• rt: JSRuntimePointer
number
packages/quickjs-ffi-types/src/ffi.ts:193
QTS_GetFalse: () =>
JSValueConstPointer
packages/quickjs-ffi-types/src/ffi.ts:50
QTS_GetFloat64: (
ctx
,value
) =>number
• ctx: JSContextPointer
• value: JSValuePointer
| JSValueConstPointer
number
packages/quickjs-ffi-types/src/ffi.ts:76
QTS_GetGlobalObject: (
ctx
) =>JSValuePointer
• ctx: JSContextPointer
packages/quickjs-ffi-types/src/ffi.ts:179
QTS_GetLength: (
ctx
,out_len
,value
) =>number
• ctx: JSContextPointer
• out_len: UInt32Pointer
• value: JSValuePointer
| JSValueConstPointer
number
packages/quickjs-ffi-types/src/ffi.ts:168
QTS_GetModuleNamespace: (
ctx
,module_func_obj
) =>JSValuePointer
• ctx: JSContextPointer
• module_func_obj: JSValuePointer
| JSValueConstPointer
packages/quickjs-ffi-types/src/ffi.ts:160
QTS_GetNull: () =>
JSValueConstPointer
packages/quickjs-ffi-types/src/ffi.ts:49
QTS_GetOwnPropertyNames: (
ctx
,out_ptrs
,out_len
,obj
,flags
) =>JSValuePointer
• ctx: JSContextPointer
• out_ptrs: JSValuePointerPointerPointer
• out_len: UInt32Pointer
• obj: JSValuePointer
| JSValueConstPointer
• flags: number
packages/quickjs-ffi-types/src/ffi.ts:133
QTS_GetProp: (
ctx
,this_val
,prop_name
) =>JSValuePointer
• ctx: JSContextPointer
• this_val: JSValuePointer
| JSValueConstPointer
• prop_name: JSValuePointer
| JSValueConstPointer
packages/quickjs-ffi-types/src/ffi.ts:106
QTS_GetPropNumber: (
ctx
,this_val
,prop_name
) =>JSValuePointer
• ctx: JSContextPointer
• this_val: JSValuePointer
| JSValueConstPointer
• prop_name: number
packages/quickjs-ffi-types/src/ffi.ts:111
QTS_GetString: (
ctx
,value
) =>JSBorrowedCharPointer
• ctx: JSContextPointer
• value: JSValuePointer
| JSValueConstPointer
packages/quickjs-ffi-types/src/ffi.ts:78
QTS_GetSymbolDescriptionOrKey: (
ctx
,value
) =>JSBorrowedCharPointer
• ctx: JSContextPointer
• value: JSValuePointer
| JSValueConstPointer
packages/quickjs-ffi-types/src/ffi.ts:95
QTS_GetTrue: () =>
JSValueConstPointer
packages/quickjs-ffi-types/src/ffi.ts:51
QTS_GetUndefined: () =>
JSValueConstPointer
packages/quickjs-ffi-types/src/ffi.ts:48
QTS_IsEqual: (
ctx
,a
,b
,op
) =>number
• ctx: JSContextPointer
• a: JSValuePointer
| JSValueConstPointer
• b: JSValuePointer
| JSValueConstPointer
• op: IsEqualOp
number
packages/quickjs-ffi-types/src/ffi.ts:173
QTS_IsGlobalSymbol: (
ctx
,value
) =>number
• ctx: JSContextPointer
• value: JSValuePointer
| JSValueConstPointer
number
packages/quickjs-ffi-types/src/ffi.ts:99
QTS_IsJobPending: (
rt
) =>number
• rt: JSRuntimePointer
number
packages/quickjs-ffi-types/src/ffi.ts:100
QTS_NewArray: (
ctx
) =>JSValuePointer
• ctx: JSContextPointer
packages/quickjs-ffi-types/src/ffi.ts:69
QTS_NewArrayBuffer: (
ctx
,buffer
,length
) =>JSValuePointer
• ctx: JSContextPointer
• buffer: JSVoidPointer
• length: number
packages/quickjs-ffi-types/src/ffi.ts:70
QTS_NewContext: (
rt
,intrinsics
) =>JSContextPointer
• rt: JSRuntimePointer
• intrinsics: IntrinsicsFlags
packages/quickjs-ffi-types/src/ffi.ts:54
QTS_NewError: (
ctx
) =>JSValuePointer
• ctx: JSContextPointer
packages/quickjs-ffi-types/src/ffi.ts:41
QTS_NewFloat64: (
ctx
,num
) =>JSValuePointer
• ctx: JSContextPointer
• num: number
packages/quickjs-ffi-types/src/ffi.ts:75
QTS_NewFunction: (
ctx
,func_id
,name
) =>JSValuePointer
• ctx: JSContextPointer
• func_id: number
• name: string
packages/quickjs-ffi-types/src/ffi.ts:197
QTS_NewObject: (
ctx
) =>JSValuePointer
• ctx: JSContextPointer
packages/quickjs-ffi-types/src/ffi.ts:64
QTS_NewObjectProto: (
ctx
,proto
) =>JSValuePointer
• ctx: JSContextPointer
• proto: JSValuePointer
| JSValueConstPointer
packages/quickjs-ffi-types/src/ffi.ts:65
QTS_NewPromiseCapability: (
ctx
,resolve_funcs_out
) =>JSValuePointer
• ctx: JSContextPointer
• resolve_funcs_out: JSValuePointerPointer
packages/quickjs-ffi-types/src/ffi.ts:180
QTS_NewRuntime: () =>
JSRuntimePointer
packages/quickjs-ffi-types/src/ffi.ts:52
QTS_NewString: (
ctx
,string
) =>JSValuePointer
• ctx: JSContextPointer
• string: BorrowedHeapCharPointer
packages/quickjs-ffi-types/src/ffi.ts:77
QTS_NewSymbol: (
ctx
,description
,isGlobal
) =>JSValuePointer
• ctx: JSContextPointer
• description: BorrowedHeapCharPointer
• isGlobal: number
packages/quickjs-ffi-types/src/ffi.ts:90
QTS_PromiseResult: (
ctx
,promise
) =>JSValuePointer
• ctx: JSContextPointer
• promise: JSValuePointer
| JSValueConstPointer
packages/quickjs-ffi-types/src/ffi.ts:188
QTS_PromiseState: (
ctx
,promise
) =>JSPromiseStateEnum
• ctx: JSContextPointer
• promise: JSValuePointer
| JSValueConstPointer
packages/quickjs-ffi-types/src/ffi.ts:184
QTS_RecoverableLeakCheck: () =>
number
number
packages/quickjs-ffi-types/src/ffi.ts:45
QTS_ResolveException: (
ctx
,maybe_exception
) =>JSValuePointer
• ctx: JSContextPointer
• maybe_exception: JSValuePointer
packages/quickjs-ffi-types/src/ffi.ts:147
QTS_RuntimeComputeMemoryUsage: (
rt
,ctx
) =>JSValuePointer
• rt: JSRuntimePointer
• ctx: JSContextPointer
packages/quickjs-ffi-types/src/ffi.ts:43
QTS_RuntimeDisableInterruptHandler: (
rt
) =>void
• rt: JSRuntimePointer
void
packages/quickjs-ffi-types/src/ffi.ts:203
QTS_RuntimeDisableModuleLoader: (
rt
) =>void
• rt: JSRuntimePointer
void
packages/quickjs-ffi-types/src/ffi.ts:205
QTS_RuntimeDumpMemoryUsage: (
rt
) =>OwnedHeapCharPointer
• rt: JSRuntimePointer
packages/quickjs-ffi-types/src/ffi.ts:44
QTS_RuntimeEnableInterruptHandler: (
rt
) =>void
• rt: JSRuntimePointer
void
packages/quickjs-ffi-types/src/ffi.ts:202
QTS_RuntimeEnableModuleLoader: (
rt
,use_custom_normalize
) =>void
• rt: JSRuntimePointer
• use_custom_normalize: number
void
packages/quickjs-ffi-types/src/ffi.ts:204
QTS_RuntimeSetMaxStackSize: (
rt
,stack_size
) =>void
• rt: JSRuntimePointer
• stack_size: number
void
packages/quickjs-ffi-types/src/ffi.ts:47
QTS_RuntimeSetMemoryLimit: (
rt
,limit
) =>void
• rt: JSRuntimePointer
• limit: number
void
packages/quickjs-ffi-types/src/ffi.ts:42
QTS_SetDebugLogEnabled: (
rt
,is_enabled
) =>void
• rt: JSRuntimePointer
• is_enabled: number
void
packages/quickjs-ffi-types/src/ffi.ts:194
QTS_SetProp: (
ctx
,this_val
,prop_name
,prop_value
) =>void
• ctx: JSContextPointer
• this_val: JSValuePointer
| JSValueConstPointer
• prop_name: JSValuePointer
| JSValueConstPointer
• prop_value: JSValuePointer
| JSValueConstPointer
void
packages/quickjs-ffi-types/src/ffi.ts:116
QTS_TestStringArg: (
string
) =>void
• string: string
void
packages/quickjs-ffi-types/src/ffi.ts:192
QTS_Throw: (
ctx
,error
) =>JSValuePointer
• ctx: JSContextPointer
• error: JSValuePointer
| JSValueConstPointer
packages/quickjs-ffi-types/src/ffi.ts:40
QTS_Typeof: (
ctx
,value
) =>OwnedHeapCharPointer
• ctx: JSContextPointer
• value: JSValuePointer
| JSValueConstPointer
packages/quickjs-ffi-types/src/ffi.ts:164
QTS_bjson_decode: (
ctx
,data
) =>JSValuePointer
• ctx: JSContextPointer
• data: JSValuePointer
| JSValueConstPointer
packages/quickjs-ffi-types/src/ffi.ts:210
QTS_bjson_encode: (
ctx
,val
) =>JSValuePointer
• ctx: JSContextPointer
• val: JSValuePointer
| JSValueConstPointer
packages/quickjs-ffi-types/src/ffi.ts:206
Generated using typedoc-plugin-markdown and TypeDoc