| 2152 | } |
| 2153 | |
| 2154 | void* fxGetArchiveDataName(txMachine* the, void* archive, txInteger index) |
| 2155 | { |
| 2156 | txU4 atomSize; |
| 2157 | txU1 *p = fxGetArchiveResources(the, archive, &atomSize), *q; |
| 2158 | if (!p) |
| 2159 | return NULL; |
| 2160 | q = p + atomSize; |
| 2161 | while (p < q) { |
| 2162 | // PATH |
| 2163 | if (!index--) |
| 2164 | return (txString)(p + sizeof(Atom)); |
| 2165 | p += c_read32be(p); |
| 2166 | // DATA |
| 2167 | p += c_read32be(p); |
| 2168 | } |
| 2169 | return C_NULL; |
| 2170 | } |
| 2171 | |
| 2172 | void* fxGetArchiveName(txMachine* the, void* archive) |
| 2173 | { |
no test coverage detected