(index)
| 1756 | return retStr; |
| 1757 | } |
| 1758 | resolve(index) { |
| 1759 | if (index > this.method.parameterCount) |
| 1760 | throw new Error("index out of parameterCount range"); |
| 1761 | let args = index == -1 ? this.retval : this.args[index]; |
| 1762 | let type = index == -1 ? this.method.returnType : this.method.parameters[index].type; |
| 1763 | return ValueResolve.fakeValue(args, type, this.method); |
| 1764 | } |
| 1765 | static fakeValue = (insPtr, type, method) => { |
| 1766 | if (typeof insPtr == "number") |
| 1767 | insPtr = ptr(insPtr); |