(struct, name)
| 2091 | } |
| 2092 | exports.StructItem = StructItem; |
| 2093 | function 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 | } |
| 2112 | exports.getStructOffset = getStructOffset; |
| 2113 | },{}],23:[function(require,module,exports){ |
| 2114 | "use strict"; |
nothing calls this directly
no outgoing calls
no test coverage detected