| 2050 | } |
| 2051 | |
| 2052 | txInteger fxGetArchiveCodeCount(txMachine* the, void* archive) |
| 2053 | { |
| 2054 | txInteger count = 0; |
| 2055 | txU4 size; |
| 2056 | txU1 *p = fxGetArchiveModules(the, archive, &size); |
| 2057 | if (p) { |
| 2058 | txU1 *q = p + size; |
| 2059 | while (p < q) { |
| 2060 | // PATH |
| 2061 | p += c_read32be(p); |
| 2062 | // CODE |
| 2063 | p += c_read32be(p); |
| 2064 | count += 1; |
| 2065 | } |
| 2066 | } |
| 2067 | return count; |
| 2068 | } |
| 2069 | |
| 2070 | void* fxGetArchiveCodeName(txMachine* the, void* archive, txInteger index) |
| 2071 | { |
nothing calls this directly
no test coverage detected