| 2134 | } |
| 2135 | |
| 2136 | txInteger fxGetArchiveDataCount(txMachine* the, void* archive) |
| 2137 | { |
| 2138 | txInteger count = 0; |
| 2139 | txU4 size; |
| 2140 | txU1 *p = fxGetArchiveResources(the, archive, &size); |
| 2141 | if (p) { |
| 2142 | txU1 *q = p + size; |
| 2143 | while (p < q) { |
| 2144 | // PATH |
| 2145 | p += c_read32be(p); |
| 2146 | // DATA |
| 2147 | p += c_read32be(p); |
| 2148 | count += 1; |
| 2149 | } |
| 2150 | } |
| 2151 | return count; |
| 2152 | } |
| 2153 | |
| 2154 | void* fxGetArchiveDataName(txMachine* the, void* archive, txInteger index) |
| 2155 | { |
no test coverage detected