MCPcopy Create free account

hub / github.com/ceifa/wasmoon / functions

Functions143 in github.com/ceifa/wasmoon

↓ 148 callersMethodcwrap
( name: string, returnType: Emscripten.JSType | null, argTypes: Array<Emscripten.JSTyp
src/luawasm.ts:430
↓ 74 callersFunctiongetEngine
(config = {})
test/utils.js:7
↓ 66 callersMethodset
* Sets the value of a global variable. * @param name - The name of the global variable. * @param value - The value to set for the global var
src/global.ts:164
↓ 65 callersMethoddoString
* Executes Lua code from a string asynchronously. * @param script - Lua script to execute. * @returns A Promise that resolves to the result
src/engine.ts:64
↓ 19 callersMethodcreateEngine
* Creates a Lua engine with the specified options. * @param [options] - Configuration options for the Lua engine. * @returns - A Promise tha
src/factory.ts:82
↓ 17 callersMethodpop
(count = 1)
src/thread.ts:153
↓ 16 callersMethodgetTop
()
src/thread.ts:85
↓ 16 callersMethodloadString
(luaCode: string, name?: string)
src/thread.ts:55
↓ 13 callersMethodget
* Retrieves the value of a global variable. * @param name - The name of the global variable. * @returns - The value of the global variable.
src/global.ts:152
↓ 12 callersMethodgetValue
(index: number, inputType?: LuaType, userdata?: unknown)
src/thread.ts:271
↓ 12 callersMethodrun
(argCount = 0, options?: Partial<LuaThreadRunOptions>)
src/thread.ts:103
↓ 11 callersMethodnewThread
()
src/thread.ts:43
↓ 10 callersMethodpushValue
(rawValue: unknown, userdata?: unknown)
src/thread.ts:187
↓ 8 callersMethodlua_pop
(luaState: LuaState, count: number)
src/luawasm.ts:358
↓ 7 callersMethodpushValue
(thread: Thread, decoratedValue: Decoration<any, ProxyDecorationOptions>)
src/type-extensions/proxy.ts:138
↓ 7 callersMethodregisterTypeExtension
* Registers a type extension for Lua objects. * Higher priority is more important and will be evaluated first. * Allows library users to spe
src/global.ts:102
↓ 7 callersMethodunref
(index: number)
src/luawasm.ts:395
↓ 6 callersMethodassertOk
(result: LuaReturn)
src/thread.ts:375
↓ 6 callersFunctiongetFactory
(env)
test/utils.js:3
↓ 6 callersMethodgetRef
(index: number)
src/luawasm.ts:415
↓ 6 callersMethodmountFile
* Mounts a file in the Lua environment asynchronously. * @param path - Path to the file in the Lua environment. * @param content - Content o
src/factory.ts:38
↓ 6 callersMethodpushValue
(thread: Thread, decoration: Decoration<Promise<T>>)
src/type-extensions/promise.ts:134
↓ 5 callersMethoddoStringSync
* Executes Lua code from a string synchronously. * @param script - Lua script to execute. * @returns - The result returned by the Lua script
src/engine.ts:82
↓ 5 callersMethodgetMemoryUsed
* Gets the amount of memory used by the Lua engine. Can only be used if the state was created with the `traceAllocations` option set to true. * @
src/global.ts:190
↓ 5 callersMethodisClosed
()
src/thread.ts:350
↓ 4 callersMethodgetLuaModule
* Gets the Lua WebAssembly module. * @returns - A Promise that resolves to the Lua WebAssembly module.
src/factory.ts:90
↓ 4 callersMethodgetValue
(thread: Thread, index: number)
src/type-extensions/function.ts:176
↓ 4 callersMethodindexToString
(index: number)
src/thread.ts:354
↓ 4 callersMethodpushValue
(thread: Thread, decoration: any)
src/type-extensions/null.ts:62
↓ 4 callersMethodpushValue
(thread: Thread, decoration: Decoration<FunctionType, FunctionDecoration>)
src/type-extensions/function.ts:145
↓ 4 callersMethodresume
(argCount = 0)
src/thread.ts:71
↓ 4 callersFunctiontick
()
test/utils.js:15
↓ 3 callersMethoddoFile
* Executes Lua code from a file asynchronously. * @param filename - Path to the Lua script file. * @returns - A Promise that resolves to the
src/engine.ts:73
↓ 3 callersMethodgetMemoryStatsRef
()
src/global.ts:210
↓ 3 callersMethodgetStackValues
(start = 0)
src/thread.ts:172
↓ 3 callersMethodgetValue
(thread: Thread, index: number)
src/type-extensions/null.ts:53
↓ 3 callersFunctionisPromise
(target: any)
src/utils.ts:1
↓ 3 callersMethodsetMemoryMax
* Sets the maximum memory allowed for the Lua engine. Can only be used if the state was created with the `traceAllocations` option set to true. *
src/global.ts:206
↓ 3 callersMethodsetTimeout
(timeout: number | undefined)
src/thread.ts:322
↓ 3 callersMethodstateToThread
(L: LuaState)
src/thread.ts:183
↓ 2 callersMethodcall
(name: string, ...args: any[])
src/thread.ts:157
↓ 2 callersMethodcallByteCode
(loader: (thread: Thread) => void)
src/engine.ts:100
↓ 2 callersFunctiondecorate
(target: unknown, options: T)
src/decoration.ts:12
↓ 2 callersFunctiondecorateFunction
(target: FunctionType, options: FunctionDecoration)
src/type-extensions/function.ts:17
↓ 2 callersFunctiondecorateProxy
(target: unknown, options?: ProxyDecorationOptions)
src/type-extensions/proxy.ts:15
↓ 2 callersMethodgetMetatableName
(index: number)
src/thread.ts:252
↓ 2 callersMethodgetTable
(name: string, callback: (index: number) => void)
src/global.ts:169
↓ 2 callersMethodloadFile
(filename: string)
src/thread.ts:67
↓ 2 callersMethodluaL_getmetatable
(luaState: LuaState, name: string)
src/luawasm.ts:362
↓ 2 callersFunctionmapTsType
(type, name)
utils/create-bindings.js:94
↓ 2 callersFunctionparseNamedSymbol
(symbol)
utils/create-bindings.js:112
↓ 2 callersMethodpushValue
(thread: Thread, decoration: Decoration<Error>)
src/type-extensions/error.ts:67
↓ 2 callersMethodref
(data: unknown)
src/luawasm.ts:374
↓ 2 callersMethodrunSync
(argCount = 0)
src/thread.ts:147
↓ 2 callersMethodsetField
(index: number, name: string, value: unknown)
src/thread.ts:97
↓ 1 callersMethodclose
* Closes the global state of the Lua engine.
src/global.ts:73
↓ 1 callersMethodclose
()
src/type-extensions/function.ts:132
↓ 1 callersFunctiondecorateUserdata
(target: unknown)
src/type-extensions/userdata.ts:11
↓ 1 callersMethoddoFileSync
* Executes Lua code from a file synchronously. * @param filename - Path to the Lua script file. * @returns - The result returned by the Lua
src/engine.ts:93
↓ 1 callersMethodgetLastRefIndex
()
src/luawasm.ts:420
↓ 1 callersMethodgetName
()
test/engine.test.js:17
↓ 1 callersMethodgetPointer
(index: number)
src/thread.ts:346
↓ 1 callersMethodgetValue
(thread: Thread, index: number)
src/type-extensions/proxy.ts:132
↓ 1 callersMethodgetValue
(thread: Thread, index: number, userdata?: any)
src/type-extensions/table.ts:22
↓ 1 callersMethodgetValue
(thread: Thread, index: number)
src/type-extensions/userdata.ts:50
↓ 1 callersMethodgetValueDecorations
(value: any)
src/thread.ts:413
↓ 1 callersMethodinitialize
(customWasmFileLocation?: string, environmentVariables?: EnvironmentVariables)
src/luawasm.ts:24
↓ 1 callersMethodisType
(_thread: Thread, _index: number, type: LuaType, name?: string)
src/type-extensions/proxy.ts:127
↓ 1 callersMethodlua_remove
(luaState: LuaState, index: number)
src/luawasm.ts:353
↓ 1 callersMethodlua_upvalueindex
(index: number)
src/luawasm.ts:370
↓ 1 callersMethodmountFileSync
* Mounts a file in the Lua environment synchronously. * @param luaWasm - Lua WebAssembly module. * @param path - Path to the file in the Lua
src/factory.ts:48
↓ 1 callersFunctionparseLine
(line)
utils/create-bindings.js:131
↓ 1 callersMethodreadTableKeys
(thread: Thread, index: number)
src/type-extensions/table.ts:94
↓ 1 callersMethodreadTableValues
(thread: Thread, index: number, seenMap: Map<number, TableType>, table: TableType)
src/type-extensions/table.ts:109
↓ 1 callersMethodremove
(index: number)
src/thread.ts:93
↓ 1 callersFunctionrunHeapsort
()
bench/steps.js:40
↓ 1 callersMethodsetMetatable
(index: number, metatable: Record<any, any>)
src/thread.ts:239
↓ 1 callersMethodsetTop
(index: number)
src/thread.ts:89
↓ 1 callersFunctionwalk
(dir)
test/luatests.js:6
MethodcheckSelf
(self: Promise<any>)
src/type-extensions/promise.ts:37
Methodclose
()
src/thread.ts:309
Methodclose
()
src/type-extensions/error.ts:74
Methodclose
()
src/type-extensions/proxy.ts:171
Methodclose
()
src/type-extensions/promise.ts:130
Methodclose
()
src/type-extensions/null.ts:71
Methodclose
()
src/type-extensions/table.ts:14
Methodclose
()
src/type-extensions/userdata.ts:64
Functionconstructor
(thread: Global, name: string)
src/type-extension.ts:11
Methodconstructor
(name)
test/engine.test.js:13
Methodconstructor
(public readonly count: number)
src/raw-result.ts:2
Methodconstructor
* Constructs a new Global instance. * @param cmodule - The Lua WebAssembly module. * @param shouldTraceAllocations - Whether to trace memory
src/global.ts:23
Methodconstructor
( private cmodule: LuaWasm, { openStandardLibs = true, injectObjects =
src/engine.ts:16
Methodconstructor
(lua: LuaWasm, typeExtensions: OrderedExtension[], address: number, parent?: Thread)
src/thread.ts:36
Methodconstructor
( public target: T, public options: K, )
src/decoration.ts:6
Methodconstructor
* Constructs a new LuaFactory instance. * @param [customWasmUri] - Custom URI for the Lua WebAssembly module. * @param [environmentVariables
src/factory.ts:18
Methodconstructor
(module: LuaEmscriptenModule)
src/luawasm.ts:200
Methodconstructor
(thread: Global, injectObject: boolean)
src/type-extensions/error.ts:10
Methodconstructor
(thread: Global)
src/type-extensions/proxy.ts:22
Methodconstructor
(thread: Global, injectObject: boolean)
src/type-extensions/promise.ts:14
Methodconstructor
(thread: Global)
src/type-extensions/null.ts:10
next →1–100 of 143, ranked by callers