MCPcopy Create free account
hub / github.com/IIIImmmyyy/frida-il2cppDumper / parser

Method parser

_agent.js:1281–1303  ·  view source on GitHub ↗
(systemString)

Source from the content-addressed store, hash-verified

1279 return Memory.readUtf16String(charsPtr, length);
1280 }
1281 static parser(systemString) {
1282 if (systemString.isNull()) {
1283 return "指针空";
1284 }
1285 let length = il2cppApi_1.il2cppApi.il2cpp_string_length(systemString);
1286 let il2cppStringChars = il2cppApi_1.il2cppApi.il2cpp_string_chars(systemString);
1287 let content = "";
1288 for (let i = 0; i < length; i++) {
1289 let offset = i * 2;
1290 let s = il2cppStringChars.add(offset).readU16().toString(16);
1291 if (s.toString().length === 2) {
1292 let s2 = il2cppStringChars.add(offset).readCString();
1293 content = content + s2;
1294 }
1295 else {
1296 //转换unicode
1297 let unicode = "\\u" + s.toString();
1298 let decodeUnicode1 = this.decodeUnicode(unicode);
1299 content = content + decodeUnicode1;
1300 }
1301 }
1302 return content;
1303 }
1304 getCString() {
1305 if (this.isNull()) {
1306 return "指针空";

Callers

nothing calls this directly

Calls 1

decodeUnicodeMethod · 0.95

Tested by

no test coverage detected