MCPcopy Create free account
hub / github.com/axhlzy/Il2CppHookScripts / toString

Method toString

Il2cppHook/_Ufunc.js:1737–1757  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1735 }
1736 static MapCacheStringWithOutValue = new Map();
1737 toString() {
1738 let cache = ValueResolve.MapCacheStringWithOutValue.get(this.cacheId);
1739 if (cache)
1740 return cache;
1741 let addressInfo = ` ${this.method.handle} -> ${this.method.relativeVirtualAddress} `;
1742 let append = "";
1743 let length = String(this.method.class.handle).length + 1;
1744 try {
1745 append += ",";
1746 append += formart_1.formartClass.alignStr(String(this.args[0]), length, " ");
1747 }
1748 catch {
1749 append += " ";
1750 append += formart_1.formartClass.getLine(length, " ");
1751 }
1752 let classInfo = `${formart_1.formartClass.alignStr(this.method.class.name, 18)}(${this.method.class.handle}${append.trim()})`;
1753 let infoContent = `===> ${(0, il2cppM_1.methodToString)(this.method, true)}\t `;
1754 let retStr = `${this.cacheId}\t${addressInfo}\t| ${classInfo} ${infoContent}`;
1755 ValueResolve.MapCacheStringWithOutValue.set(this.cacheId, retStr);
1756 return retStr;
1757 }
1758 resolve(index) {
1759 if (index > this.method.parameterCount)
1760 throw new Error("index out of parameterCount range");

Callers

nothing calls this directly

Calls 3

getMethod · 0.45
alignStrMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected