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

Function getStructOffset

_agent.js:2093–2111  ·  view source on GitHub ↗
(struct, name)

Source from the content-addressed store, hash-verified

2091}
2092exports.StructItem = StructItem;
2093function getStructOffset(struct, name) {
2094 let all = 0;
2095 for (let i = 0; i < struct.length; i++) {
2096 let item = struct[i];
2097 let param = item.param;
2098 let size = item.size;
2099 if (param === name) {
2100 if (i === 0) {
2101 return 0;
2102 }
2103 else {
2104 return all;
2105 }
2106 }
2107 else {
2108 all = all + size;
2109 }
2110 }
2111}
2112exports.getStructOffset = getStructOffset;
2113},{}],23:[function(require,module,exports){
2114"use strict";

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected