MCPcopy Create free account
hub / github.com/ceifa/wasmoon / getValue

Method getValue

src/type-extensions/proxy.ts:132–136  ·  view source on GitHub ↗
(thread: Thread, index: number)

Source from the content-addressed store, hash-verified

130 }
131
132 public getValue(thread: Thread, index: number): any {
133 const refUserdata = thread.lua.lua_touserdata(thread.address, index)
134 const referencePointer = thread.lua.module.getValue(refUserdata, '*')
135 return thread.lua.getRef(referencePointer)
136 }
137
138 public pushValue(thread: Thread, decoratedValue: Decoration<any, ProxyDecorationOptions>): boolean {
139 const { target, options } = decoratedValue

Callers 1

constructorMethod · 0.45

Calls 1

getRefMethod · 0.80

Tested by

no test coverage detected