| 460 | } |
| 461 | |
| 462 | char *modGetModAtom(txMachine *the, uint32_t atomTypeIn, int *atomSizeOut) |
| 463 | { |
| 464 | uint8_t *xsb = (uint8_t *)kModulesStart; |
| 465 | if (!xsb || !the->archive) return NULL; |
| 466 | |
| 467 | return findNthAtom(atomTypeIn, 0, xsb, c_read32be(xsb), atomSizeOut); |
| 468 | } |
| 469 | |
| 470 | char *findNthAtom(uint32_t atomTypeIn, int index, const uint8_t *xsb, int xsbSize, int *atomSizeOut) |
| 471 | { |
no test coverage detected